Jump to content

simple question


alijahed

Recommended Posts

Hi All,

 

Really confused!

Why this doesn't work?!

 

(defun c:test ()

(setq p2 1000.0)

(command "_dimlinear" '(0 0 0) '(p2 0 0) '(0 0 0))

)

 

but this is working:

 

(defun c:test ()

 

(command "_dimlinear" '(0 0 0) '(1000.0 0 0) '(0 0 0))

)

 

Tanks in advance

Link to comment
Share on other sites

You cannot use a variable name in a quoted list since you add the quote to avoid that list to be evaluated as a statement - use LIST function instead to construct the point:

 

(defun c:test ()
(setq p2 1000.0)
(command "_dimlinear" '(0 0 0) (list p2 0 0) '(0 0 0))
)

 

Regards,

Link to comment
Share on other sites

Hi All,

 

Really confused!

Why this doesn't work?!

 

 

 

but this is working:

 

 

 

Tanks in advance

 

Give this a try.

 

(defun c:test ()
(setq p2 100.0)
(command "_dimlinear" '(0.0 0.0 0.0) (list p2 0.0 0.0) '(0.0 [color="Red"]10.0[/color] 0.0))
)

 

Just an idea.

 

Best Regards

Tharwat

Link to comment
Share on other sites

(command "_dimlinear" '(0.0 0.0 0.0) (list p2 0.0 0.0) '(0.0 10.0 0.0))

 

That make no sense. The third point argument set dimension line’s location – I’m afraid that by proposing to move it on Y axis will not serve OP issue.

 

Regards,

Link to comment
Share on other sites

That make no sense. The third point argument set dimension line’s location – I’m afraid that by proposing to move it on Y axis will not serve OP issue.

 

Regards,

 

your opinion is highly appreciated.

 

But that was just an idea . And when implement the program, dimension will cover the line with no sense. that's all.

 

Thanks

Link to comment
Share on other sites

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