Ivan N Posted yesterday at 10:44 AM Posted yesterday at 10:44 AM Hello, With the help of AI I am trying to make a .lsp script that insert specific block on every vertex of a polyline and orient two "arrows" to the previous and next vertex. I try with different AI models and always I end up with error in Autocad (I use Autocad 2022) Error: "ActiveX Server returned the error: unknown name: "DYNAMICBLOCKPROPERTIES". AI say that the block is not really a dynamic block, which I dont get, how block can be not really dynamic. I am attaching both block and .lsp script. I hope someone will give me some advice what is wrong with the block or with .lsp script. BlockInsert.lsp block.dwg Quote
mhy3sx Posted yesterday at 04:58 PM Posted yesterday at 04:58 PM Did you try this ? https://www.cadtutor.net/forum/topic/76319-add-block-onto-polyline-vertices/ Quote
GLAVCVS Posted yesterday at 07:33 PM Posted yesterday at 07:33 PM Maybe it's just that property doesn't exist on the specified object. Quote
BIGAL Posted 21 hours ago Posted 21 hours ago (edited) For a client did draw arrows I used a entmake pline so have control over the arrow sizes length and width. Its a case of setting the start as 0.0 and a length and an end arrow width. Yes matching angle of a pline and same layer. Can you provide more information about how the arrows are to be shown at each vertice, length and width plus direction. Edited 21 hours ago by BIGAL Quote
Ivan N Posted 5 hours ago Author Posted 5 hours ago Hello thank you for your reply. May be I did not explain properly what I want to do. I will post some pictures may be they will help. On the Block_1.jpg is how the drawing has to look like. On the Block_2.jpg is the block it self when is edited. So the script has to change "Angle" and "Angle1" so the so called arrows point to the previous and next block - Block_3.jpg Quote
Recommended Posts
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.