Insert Block to COGO points

Insert Block to COGO points

JohnC_ISM
Collaborator Collaborator
3,875 Views
52 Replies
Message 1 of 53

Insert Block to COGO points

JohnC_ISM
Collaborator
Collaborator

i have a topo im working on and it has tons of mailboxes and im looking for a lisp that will insert a block to each one if possible. and im hoping to be able to modify the lisp for other blocks such as utility poles and what not. they are Civil object points and the raw description is what i would need incorporated into the lisp

autocad LDT 09

0 Likes
Accepted solutions (1)
3,876 Views
52 Replies
Replies (52)
Message 2 of 53

john.uhden
Mentor
Mentor

You need to learn about C3D point label styles.  It's all there already.

You can create label styles for mailboxes, u-poles, manholes, signs, etc. and create point groups using wild card descriptors to which you assign those styles.  Don't use overrides unless you absolutely have to.

You should continue your learning over in the C3D forum where there's a wizard named Jeff Mishler (@Jeff_M).

John F. Uhden

0 Likes
Message 3 of 53

Sea-Haven
Mentor
Mentor

Do you have CIV3d point styles, descriptor keys sets all ready ? Like John you will be going nowhere without them. You should have got a DWT from your CAD dealer with at least something set up. Ours has like 250 keys so mail would be one of them.

 

Looking at image can see trees, Light pole, telepit to right hydrant and water valve, all auto inserted.

SeaHaven_0-1631332101795.png

I do have a make descriptor keys sets from excel as its not an option in CIV3D, can export but not import.

0 Likes
Message 4 of 53

john.uhden
Mentor
Mentor
@Sea-Haven,
Even without descriptor keys, point groups have include options for wild
card descriptors. And as you might create a new group and/or style, it can
be copied to other drawings including the master template.

John F. Uhden

0 Likes
Message 5 of 53

JohnC_ISM
Collaborator
Collaborator

as i mentioned i have land desktop 2009. so i dont think i have those options. 

0 Likes
Message 6 of 53

john.uhden
Mentor
Mentor
@JohnC_ISM
My apologies for having missed that.
In that case you do need to set up description keys for when you import
your points. If I recall, the help is pretty good at describing how to
employ them. If you have trouble, get back to me. I was pretty good with
LDT.

John F. Uhden

0 Likes
Message 7 of 53

Sea-Haven
Mentor
Mentor

John do you have some 2009 LDT dwt that would be quickest way, either number or alpha keys. That is why I wrote the import description keys for CIV3D as making 250 keys is painfully slow 1 at a time. LDT may have been better never used it. 

0 Likes
Message 8 of 53

pbejse
Mentor
Mentor
Accepted solution

@JohnC_ISM wrote:

i have a topo im working on and it has tons of mailboxes and im looking for a lisp that will insert a block to each one if possible. and im hoping to be able to modify the lisp for other blocks such as utility poles and what not. they are Civil object points and the raw description is what i would need incorporated into the lisp

autocad LDT 09


You see the COGO points in Land Desktop as "AECC_COGO_POINT" entity?

If yes try the attached lisp

Command: InsBlocks

Select objects ( user select objects )

 

Prompts the user for block name to insert onto the cogo point location

pbejse_0-1631615450421.png

Prompts the user for raw description to process

pbejse_2-1631616216744.png

 

The current settings will replace the cogo point, IF you dont want that settings revmvoe this line on the attached lisp file.

;;	Remove this Line if you want to keep the cogo point	;;
(vla-delete (Cadr rdname))
;;								;;

 

HTH

 

0 Likes
Message 9 of 53

john.uhden
Mentor
Mentor
@Sea-Haven
I would have to look back through my archives on my old Win7 laptop at home.
My files wouldn't be for LDT2009, but probably for LDT2004 (R16), but the
format should still be the same, right?
Actually, I thought that the last LDT was as a companion to C3D 2008.

John F. Uhden

0 Likes
Message 10 of 53

Sea-Haven
Mentor
Mentor

If we look at how many versions have gone past 2009 it is just maybe to hard, Stephen you would be better of looking at CIV3D or one of the other CIVIL packages that are out there Civil Site Design is cheaper running on Bricscad or Autocad OEM.

 

CIV3D can be rented its a bit high for a few months but I think it can be done. Check www.Autodesk.com

0 Likes
Message 11 of 53

JohnC_ISM
Collaborator
Collaborator

when i used the command it asks to select objects. im not sure what to select so i tried multiple things ie; blocks, lines, points, exploded blocks, and even the whole drawing. the result always said "0 objects found" so im not sure what im doing wrong. none of the dialog boxes popped up. 

0 Likes
Message 12 of 53

john.uhden
Mentor
Mentor

@pbejse 

I think the OP does not have C3D, so he has no AECC_COGO_POINTs to deal with.  He is using the last version of LDT.

That's why @Sea-Haven asked if I had any old description key files leftover for the OP to use as a starting point for building his own.  If he can, then he can get all the symbols (blocks) inserted when he imports his <POINTS>.TXT file.

Otherwise we would have to build him a custom routine for LDT to read each description and insert the correct block on the desired layer.  I have old code to do the description recognition and insertion point for LDT, but I no longer have it installed to test, and he would still need a data file like:

desc,symbol,layer

UP,u_pole,UTIL-ES

MB,mailbox,MISC-ES

 

I don't think a description key file is a heckuva lot different.

He should be able to study the help and figure it out for himself.  That's what I had to do back when.

John F. Uhden

0 Likes
Message 13 of 53

Sea-Haven
Mentor
Mentor

Like John if the OP has LDT he can maybe export a csv file of ptnum.x.yz.description, then read that file find the corresponding block name to the point description and insert, ("Mail" "Mail")("PP" "Powerpole")....

 

The project may have already started with a p,x,y,z,d point file.

 

 

0 Likes
Message 14 of 53

pbejse
Mentor
Mentor

@JohnC_ISM wrote:

when i used the command it asks to select objects. im not sure what to select so i tried multiple things ie; blocks, lines, points, exploded blocks, and even the whole drawing. the result always said "0 objects found" so im not sure what im doing wrong. none of the dialog boxes popped up. 



@john.uhden wrote:

I think the OP does not have C3D, so he has no AECC_COGO_POINTs to deal with.  He is using the last version of LDT.

 

Like @john.uhden  I should've read the first post.

 -- they are Civil object points and the raw description is what i would need incorporated into the lisp-

 

What caught my eye was the image at post #1.  Thinking the if OP can see the "Points Group Manager" or its equivalent in LDT, the AECC_COGO_POINT objects and its data should be exposed thru VLisp API. 

 

Knowing that now, @JohnC_ISM What do you see in LDT? what type of object? can you post a sample drawing? Leave a couple of "points" on the file to test.

 

 

0 Likes
Message 15 of 53

JohnC_ISM
Collaborator
Collaborator

see if this works

0 Likes
Message 16 of 53

pbejse
Mentor
Mentor

@JohnC_ISM wrote:

see if this works


As I I can only access this with C3D and Autocad 

When you list the objects using LIST command, what do you see on LDT?

ACAD_PROXY_ENTITY or AECC_POINT?

 

0 Likes
Message 17 of 53

john.uhden
Mentor
Mentor
Ya know, there's plenty of help on-line.
I Googled "Land Desktop Description Keys" and among other links I found
https://documentation.help/AutoCAD-Land-Desktop-Tutorial/land6mk3.htm

John F. Uhden

0 Likes
Message 18 of 53

john.uhden
Mentor
Mentor
@pbejse
I have tried accessing LDT points in C3D, but most all the properties that
were available in LDT are lobotomized in C3D. The only way you can access
their properties is to have C3D convert them to Cogo points. Same scenario
is true for AECC_CONTOURs as well.
And if you try to copy old LDT points from a local coordinate system into
NAD83, or vice versa, you will have a mess which you can not clean up with
any kind of AutoLisp.

John F. Uhden

0 Likes
Message 19 of 53

pbejse
Mentor
Mentor

@john.uhden wrote:
I have tried accessing LDT points in C3D, but most all the properties that
were available in LDT are lobotomized in C3D...

 

That cant be good 🤔

 

I guess you're right, regardless if its AECC_POINT or  ACAD_PROXY_ENTITY, if it doesnt include the essential information then its no good,  Best we can do is use what we have, perhaps exploding the object and replace it with a block using the lines as the point and the text as the raw description. But its not an ideal solution.

 

 

0 Likes
Message 20 of 53

JohnC_ISM
Collaborator
Collaborator

AECC_POINT

0 Likes