It looks like you're new here. If you want to get involved, click one of these buttons!
I have a parametric block of a pipe.
the parameter is the length.
I need help with writing a lisp that will do the follows (I've also attached a sample drawing):
1. select the parametric block (the Pipe Block).
2. use the DIST command to get the required length of the parameter (the required pipe length).
3. assign that value to the length parameter of the selected block (in the sample it is parameter "d1" of the pipe block).
4. assign that DIST value to the "value" field of the "QUANTITY" attribute of the selected block.
in the example file it is the transition from situation 1 to situation 2.