Jump to content

Recommended Posts

Posted

Hi,

 

Does anyone know how to use solution of a CAL operation (say the solution of 1200+1650) in another CAL operation (say dividing the answer by 2) or in the designing process (say the length of a line) in dynamic input?

 

I do not that some basic stuff in AutoLISP i.e (+ 1200 1650) and set quote or setq command (setq a (+ 1200 1650)) and line, a

 

Second. Say I have a door and I want to show the position of the fastenings. I have done the division (using DIVIDE) and insert the blocks (using ARRAY) to the required places and do the dimensioning. Is there a way to keep such computation process (sometimes long enough) when stretching the door to new heights???? Sometimes a 10mm. change, and the whole process need undone and redone causing excess time waste.

 

Thank you very much.

 

Nicolas.

Posted

'cal expression (1200.0+1650.0)/2.0 seems to work

 

Sound like a lisp for the hinges just pick line if changed line length then erase hinges and do again.

 

Maybe 2011 has now the ability to infer constraints which is the old inventor way of putting rules in place for objects. Just place a hinge a rule length from end and one at middle stretch or shorten and the hinges will move automatically.

Posted

Hi,

 

I think you have not understand the full meaning of what I wanted to do through cal. Yes it does work if for example you want to do (5*40)-10 in one process but I want to do it in two process. I need the answer for (5*40) first and accessible and then do further operation or application with it. For exampe following an operation, I can use the answer in a line or any other drawing command like stretch, divide and so on.

 

I do know that this is possible through the setq (set quote) lisp command but it would be much more easier and normal to custom to use 2+3 than (+ 2 3).

 

As to the divide and reset the marking, your solution is the actual process that I do. However this is too much time consuming as per correction especially when I have hundreds of windows to correct.

 

Could anybody help???

:):):):):) :(

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