Hi all,
Is there a way that I can create a block reference that just creates the definition so I can use that block later in the script, without it inserting the block at its creation location 0,0,0
Thank you,
Hi all,
Is there a way that I can create a block reference that just creates the definition so I can use that block later in the script, without it inserting the block at its creation location 0,0,0
Thank you,
Hi @jcoon,
If you’re able to upgrade to Civil 3D 2025, there is a node called Block.ByName
that you can use to create block definitions.
If that isn’t an option, then you’ll probably need to take the long way around and use the API either via Python or C#.
If 2025 isn’t an option, you can actually use Civil3D toolkit’s BlockReferenceExtension class to create a block reference from geometry (I think it is BlockReferenceExtensions.BlockReferenceByGeometry
but don’t recall), then query the block from the block reference, and use a WaitFor method (in a code block type [pass, wait][0];
) where pass is the block reference and wait is the block, then delete the block reference with Object.Delete.
Thanks Guys, can’t use 2025 until company deploys. still on 2023, takes a long time for everyone to switch because we have clients DOT’s that use 2023.
thank you