Select nested Cogo Point (nentsel) for Site creation

Good afternoon. I have a lisp that I use to select a Cogo Point nested in an xref, and create a new layout using the Name property of the selected Cogo Point, and do some other things with the layout.

I’ve been unable to modify the lisp to create a Site using the Cogo Point Name, as there is no way to suppress the dialogue box from the command “CREATESITE”. The automation of using the Cogo Point Name as the Site Name is the point.

There are plenty of nodes for Sites and Cogo Points, but I cannot figure out the Dynamo equivalent of lisps’ “nentsel” function, or any other way to get the nested Cogo Point info. I have zero experience with custom nodes/Python/C+.

Any help would be much appreciated!

Hi @dgregory,

An xref is actually a block reference, so you can access its source block and then get the COGO points from there. A couple options:

2 Likes