Jump to content

Recommended Posts

Posted

Hello,

I'm seeking a quick method to pick a dimension line (single chain)efficiently.

Unfortunately, FSMODE isn't applicable to dimensioned entities.

While hovering over the grip, there's an option to "Stretch dim group," but I'm uncertain about its functionality. It seems to choose dimension objects arbitrarily.

Is there a method to sequentially select dimension lines?

Thank you.

S

  • 2 weeks later...
Posted

Is it the animated GIF below?

 

Video_2024-04-10_094357.gif.9267aa0fac9f218740c1396e12724527.gif

 

[XDrX-PlugIn(131)] Dimension object linkage selection (theswamp.org)

https://www.theswamp.org/index.php?topic=59432.0

 

XDRX-API download link:  

The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
[XDrx-Sub Forum]
https://www.theswamp.org/index.php?board=78.0
https://github.com/xdcad/XDrx-API

 

(defun c:xdtb_dimselzt (/ v e1 es)
  (xdrx-begin)
  (if (not #mode)
    (setq #mode 0)
  )
  (if (and (xdrx-initget 0 "0 1 2 3")
	   (setq
	     v
	      (getint
		(xdrx-string-formatex
		  (xdrx-string-multilanguage
		    "\n选择方式[同排连续(0)/连续组团(1)/同排所有(2)/同排组团(3)]<%d>:"
		    "\nSelection method [Continuous same row(0)/Continuous group(1)/All same row(2)/Group same row(3)]<%d>:"
		  )
		  #mode
		)
	      )
	   )
      )
    (setq #mode v)
  )
  (if (and (setq e1
		  (car (xdrx-entsel
			 (xdrx-string-multilanguage
			   "\n拾取标注对象<退出>:"
			   "\nPick a Dimension object<Exit>:"
			 )
			 '((0 . "*dim*"))
		       )
		  )
	   )
	   (setq es (xd::dim:groupbyent e1 nil #mode))
      )
    (xdrx-entity-redraw es 2)
  )
  (xdrx-end)
  (princ)
)

 

Posted

Using ssget "F" comes to mind as you can draw a drag over p/line for selection.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...