Extracting COGO Points from blocks with descriptions

Extracting COGO Points from blocks with descriptions

carl3ZPF6
Enthusiast Enthusiast
6,439 Views
50 Replies
Message 1 of 51

Extracting COGO Points from blocks with descriptions

carl3ZPF6
Enthusiast
Enthusiast

I have an issue where a have a massive drawing with 1000+ different blocks. Each block has an autocad point within it (which is also at the same position as the block insertion point). What I want to do is convert all the autocad points to COGO points. What I have been doing is exploding all blocks then converting the Autocad point to COGO points. This is an issue because any block information is lost. What I want to get as an output is all the COGO points but with a description of each point that is tied to the block it came from.

 

What I have tried is changing the autocad point to a COGO point at the block level (and adding the appropriate block description). The issue is when I go back to the drawing to try to explode these blocks, I get a duplicate point number error (I tried every option for re-sequencing but it seems the "apply to all points" check box is broken and I have to choose options for every single point [1000+]).

 

Is there a better way to do this? I know a little LISP so I am not opposed to a scripted solution.

 

Any help is appreciated.

0 Likes
Accepted solutions (1)
6,440 Views
50 Replies
Replies (50)
Message 41 of 51

Pointdump
Consultant
Consultant

Carl,
WBLOCK'ing out the blocks also works for your Point- Test_Script Output.dwg.
Dave

 

BlockName2Desc_3.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 42 of 51

carl3ZPF6
Enthusiast
Enthusiast

Having to WBLOCK into another drawing every time will not be the ideal solution as there are operations I need to perform with the COGO points in the main drawing after they are inserted.

0 Likes
Message 43 of 51

carl3ZPF6
Enthusiast
Enthusiast

@Pointdump 

I changed the script a bit to select only items on a layer I name "BEARINGS". Now the point output is good, but the descriptions all say "*Model Space"

carl3ZPF6_0-1694530822365.png

carl3ZPF6_1-1694530886101.png

0 Likes
Message 44 of 51

carl3ZPF6
Enthusiast
Enthusiast

See script

0 Likes
Message 45 of 51

Pointdump
Consultant
Consultant

Carl,
Not sure. I'm scratching my head and I'm definitely NOT proficient with Dynamo. One thing that helps nail down problems is a "Watch" node. Maybe change the lacing on Block.Name.
Dave

 

WatchNode_2.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 46 of 51

carl3ZPF6
Enthusiast
Enthusiast

@PointdumpI figured it out I was mixing data types. The geometry and raw description had to come from the same list. Thank you for all your help sir.

carl3ZPF6_0-1694547447786.png

 

Message 47 of 51

Joe-Bouza
Mentor
Mentor

Hi Dave 

 

is there something going on the DATAEXTRATION doesn't work?

does the block have attributes? I did not see a data set from the OP

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 48 of 51

carl3ZPF6
Enthusiast
Enthusiast

No, it worked well I just do it so often a scripted solution will save a lot of time.

0 Likes
Message 49 of 51

Pointdump
Consultant
Consultant

Hi Joe,
DATAEXTRACTION worked, but it's always nice to have more than one way to do things. I had some fun playing with Dynamo. It's very powerful. I may just give it another crack.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 50 of 51

cwitzel5NL5H
Advocate
Advocate

It is very powerful, but it does have it's quirks.  Selection Sets are hard to explain to end users. 

Excel integration is amazing and very powerful, but again, file selection is tricky to explain to end users.

There is tons of helpful posts and people on the forums and I have even written a simple python node.

We are still on 2023, but I think 2024 has a better set of built in nodes.

Conan Witzel
Herrera Inc
Message 51 of 51

Joe-Bouza
Mentor
Mentor

Piquing my interest too

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes