Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
Anonymous
362 Views, 2 Replies

radial dim

i am not able to create radial dim.

code:

(command "circle" '(0 0 0) 100)

(command "dimradius" (entlast) '(200 100 0))

 

i am not getting error but radial dim is not created.

 

help me.

 

2 REPLIES 2
Message 2 of 3
Kent1Cooper
in reply to: Anonymous


@Anonymous wrote:

....

(command "circle" '(0 0 0) 100)

(command "dimradius" (entlast) '(200 100 0))

 

i am not getting error but radial dim is not created.

....


That's interesting....  At the Command: line, Dimradius won't accept Last as a selection, which would at least explain its not drawing a dimension.  But when doing it manually, it has the common courtesy to talk to you about it, so I don't understand why there's no message.

 

In some cases it's obvious why a command needs a location-specific selection.  It doesn't seem like that should be necessary for this, but apparently it is.  This works, if you can set it up similarly:

 

(command "dimradius" '(100 0 0) '(200 100 0))

 

That shouldn't be hard to do, if your code has established a center and radius, unless there's any chance of its "seeing" something other than the Circle that might happen to go through the same point.  But it shouldn't, if the Circle is the last thing drawn.

Kent Cooper, AIA
Message 3 of 3
pbejse
in reply to: Anonymous

Thats odd, earlier i cant even see the post?  Smiley Happy

 

will (ssget "L") work instead?

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report