Is it possible to stretch block depending of the insertion point so that the bottom part is always on the same high.
See attached image.
Regards,
Vladimir
Do you want the changes to be automatic on Insertion based on User input or have the User make the Stretch after the DynBlk is inserted?
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
I want it automatic, I already have stretch action in the block.
Is it possible to use insertion point y coordinate as parameter in Parameters Manager expression to calculate line length.
Regards,
Vladimir
You are going to need some programming to accomplish what you wish.
Someone may come by and offer help in that regard or you can try the Customization Forums to see what may be doable.
Regarding your query: How does the DynBlk know that you want it stretched as shown without telling it?
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Charles,
thank you for your replies.
That's what I expected, but I had to check it.
Maybe in some future release it would be possible to define construction geometry or attribute as "external".
For example one could define construction line in dynamic block and constrain geometry in block to be 20 units below this construction line. Than declare this line as "external", so that on block insertion ACAD asks to select line in the drawing that will take place of the construction line in the block, with all defined constrains.
So if you move selected line block moves to. Or if you change line length something else that was defined in the dynamic block changes. Insertion point would be one of these "external' parameters.
Regard,
Vladimir
I'm gonna put my foot in my mouth and assume locality from name.
If you do speak Russian or similar Slavic language troll the forums/websites there.
There is lots of good interesting stuff that I've seen come out of the Russian Forums.
You might see something there and it is done within the parameters of AutoCAD without third party programs.
Please mark any response as "Accept as Solution" if it answers your question.
_____________________________________________________________
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Are the Y values always going to be be the same or can they be any value?
If they are going to be a small set of values you could use the Action Recorder to Insert a Block and Change Dynamic Property Values, this would give you some quick commands to easily insert your block with the correct length. You could also extend this with a DIESEL script to automatically run the correct Action. Something along the lines of:
^C^C_.Lastpoint;\_USERS1;$(IF,$(=,$(rtos,$(index,1,$(getvar,USERS1)),2,0),120),INSERT_AT_120,DO_SOMETHING_ELSE)