Generate Dynamic Block with code.

Generate Dynamic Block with code.

reuter.philipp
Enthusiast Enthusiast
263 Views
0 Replies
Message 1 of 1

Generate Dynamic Block with code.

reuter.philipp
Enthusiast
Enthusiast

Hi there,

 

I want to write a tool to create dynamic blocks based on blocks i allready made. To give an example of what I want to do, I have a folder with aprox 200 blocks, with different dimensions, which I want to combine into a single block using visibility. Usually I do this manually by dragging and dropping the block and setting it to the proper visibility and creating all the visibility names. Now i have written some python code to gather all the files and i also wrote some code to insert the block from the drawing into a new template and this works great but i would like to also create the dynamic properties and visibilities dynamically as its a pretty simple logic to follow. I have never created dynamic blocks with any language before, only regular blocks with VBS, .NET and now Python, I prefer Python with ObjectX but I dont think its supported there, is it?

 

Regards,
Philip

0 Likes
264 Views
0 Replies
Replies (0)