Creating Dynamic Block with some Parameters like height and width.

Creating Dynamic Block with some Parameters like height and width.

prem_kumar8SXZJ
Enthusiast Enthusiast
341 Views
2 Replies
Message 1 of 3

Creating Dynamic Block with some Parameters like height and width.

prem_kumar8SXZJ
Enthusiast
Enthusiast

Hi everyone, I am trying to create a block with properties like height and width. I know how to create a dynamic block in AutoCAD and add parameters like linear and Actions like Scale, stretch, etc. However, I am struggling to create the same functionality using AutoCAD .NET API. If anyone knows or has any idea about how we can assign parameters to a block, then please help me.

 

Many thanks for considering my request.

0 Likes
342 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

Based on your description, by saying "...create a block...", I assume you mean block definition/BlockTableRecord. If so, yes, you can create a block definition/BlockTableRecord via .NET API code, but, no,  you cannot define dynamic properties as user does in AutoCAD's block editor manually: there is no API exposed for creating dynamic properties.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

prem_kumar8SXZJ
Enthusiast
Enthusiast

Hi @norman.yuan, Actually I already created some blocks using .NET API but I want to make those blocks dynamic and assign some properties. But since you are saying that AutoCAD API does not support it right now then I think I have to find some alternative option for that. Thanks for the quick response.

0 Likes