Jump to content

Recommended Posts

Posted

Hey,

 

I want to invoke the "dimlinear" function through lisp, that is

(command "dimlinear"..) etc.

 

Could anyone tell me which arguments does the function take and also

how do I adjust the text properties of the "dimlinear" annotations.

 

Thanks guys/ladies

Posted

assafius hello, if you want to call the command with lisp could be so

(defun c:dlin ()
 (vl-cmdf "_dimlinear")
 )

 

and if you want to modify the properties of the dimensions of DIMSTYLE could do it directly.

I hope this helps and sorry for my english.

Regards.

Posted

Thanks Alejandro but that's not quite what I meant.

 

Running the "dimlinear" command through lisp is easy. The tricky part is to

set the parameters that follow the command.

 

If anyone knows what they are, please reply..

 

Thanks fellows

Posted

Running the "dimlinear" command through lisp is easy. The tricky part is to

set the parameters that follow the command.

 

If anyone knows what they are, please reply..

 

Thanks fellows

 

Do you have AutoCAD with which to test?

If so, run the command and follow the prompts.

 

Generally speaking, it's [pick two points] -or- [select an object], then pick point to define location of dim line.

Posted

This ... ?

 

(if (and (setq p1 (getpoint "\n Specify first point :"))
        (setq p2 (getpoint "\n Next point :" p1))
   )
 (command "_.dimlinear"
          "_non"
          p1
          "_non"
          p2
          "_non"
          (polar p1
                 (+ (angle p1 p2) (/ pi 2.))
                 (/ (distance p1 p2) 35.)
          )
 )
)

Posted

Thanks !

 

By the way,

can u please remind me how to lisp something that turns off the

snap mode ?

 

thanks again

Posted

thanks again

 

You're welcome .

 

By the way,

can u please remind me how to lisp something that turns off the

snap mode ?

 

(setvar 'osmode 0)

Posted
can u please remind me how to lisp something that turns off the snap mode?

 

Another:

(setvar 'osmode (logior (getvar 'osmode) 16384))

Posted
You're welcome .

 

 

 

(setvar 'osmode 0)

 

Another:

(setvar 'osmode (logior (getvar 'osmode) 16384))

 

To clarify for the OP.....

Technically, setting osmode to 0 does not turn off object snap, it just disables all object snap modes - which of course gives the user the same effect.

But doing it this way loses the combination of previously set of object snap modes.

Posted
Technically, setting osmode to 0 does not turn off object snap, it just disables all object snap modes - which of course gives the user the same effect.

But doing it this way loses the combination of previously set of object snap modes.

 

Precisely why I offered my alternative... ;)

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...