Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract vertex data from Feature Line/Figure?

6 REPLIES 6
Reply
Message 1 of 7
BMcAnney
375 Views, 6 Replies

Extract vertex data from Feature Line/Figure?

Does anyone know how to extract vertex information from a Feature Line or a survey Figure object?

The entlist for a feature line looks something like this, and figures are very similar:
((-1 . ) (0 . "AECC_FEATURE_LINE") (330 .
) (5 . "1088E") (100 . "AcDbEntity") (67 . 0) (410 .
"Model") (8 . "P-TOPO-BRAK") (48 . 0.8) (100 . "AecDbEntity") (102 .
"{AEC_SUBOBJECT") (300 . "AeccImpFeatureLine") (100 . "AecImpObj") (3 . "")
(100 . "AecImpEnt") (171 . 0) (100 . "AeccImpEnt") (102 . "AEC_SUBOBJECT}")
(102 . "{AEC_NULLOBJECT}") (100 . "AeccDbEntity") (100 . "AeccDbFeature") (100
. "AeccDbFeatureLine"))

The data must be somewhere, but I have no idea how to get at it.

Thanks!
Brent McAnney
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: BMcAnney

With VBA it's not easy, at least in 2008 and below. With lisp or .NET you
can use the the curve class of the Autodesk Geometry API to get them. With
lisp, that's (vlax-curve-*...). For .NET, search for posts from early last
year, or late 2006, by myself &/or sinc, regarding Featurelines..

2009 exposes featurelines to the API, not sure about figures, though.

HTH,
Jeff


"bmcanney" wrote in message news:5902486@discussion.autodesk.com...
> Does anyone know how to extract vertex information from a Feature Line or
> a survey Figure object?
>
> The entlist for a feature line looks something like this, and figures are
> very similar:
> ((-1 . ) (0 . "AECC_FEATURE_LINE") (330 .
> ) (5 . "1088E") (100 . "AcDbEntity") (67 . 0) (410
> .
> "Model") (8 . "P-TOPO-BRAK") (48 . 0.8) (100 . "AecDbEntity") (102 .
> "{AEC_SUBOBJECT") (300 . "AeccImpFeatureLine") (100 . "AecImpObj") (3 .
> "")
> (100 . "AecImpEnt") (171 . 0) (100 . "AeccImpEnt") (102 .
> "AEC_SUBOBJECT}")
> (102 . "{AEC_NULLOBJECT}") (100 . "AeccDbEntity") (100 . "AeccDbFeature")
> (100
> . "AeccDbFeatureLine"))
>
> The data must be somewhere, but I have no idea how to get at it.
>
> Thanks!
> Brent McAnney
Message 3 of 7
Anonymous
in reply to: BMcAnney

Hi,

The whole Survey database is very accessible with ADO for reading (and
writing if you are prepared to reverse engineer the tables and fields that
need to be populated for a data entry item). Hence, adding data to it is
far simpler if you use the Autodesk supplied APIs.

It is quite easy to write figures and networks to the database. Without
looking at the Object Model, I can't remember if you can easily edit then.

I would expect that you could read a figure out of the database - delete it
and write two new ones back

--


Regards

Laurie Comerford

"Jeff Mishler" wrote in message
news:5902687@discussion.autodesk.com...
With VBA it's not easy, at least in 2008 and below. With lisp or .NET you
can use the the curve class of the Autodesk Geometry API to get them. With
lisp, that's (vlax-curve-*...). For .NET, search for posts from early last
year, or late 2006, by myself &/or sinc, regarding Featurelines..

2009 exposes featurelines to the API, not sure about figures, though.

HTH,
Jeff


"bmcanney" wrote in message news:5902486@discussion.autodesk.com...
> Does anyone know how to extract vertex information from a Feature Line or
> a survey Figure object?
>
> The entlist for a feature line looks something like this, and figures are
> very similar:
> ((-1 . ) (0 . "AECC_FEATURE_LINE") (330 .
> ) (5 . "1088E") (100 . "AcDbEntity") (67 . 0) (410
> .
> "Model") (8 . "P-TOPO-BRAK") (48 . 0.8) (100 . "AecDbEntity") (102 .
> "{AEC_SUBOBJECT") (300 . "AeccImpFeatureLine") (100 . "AecImpObj") (3 .
> "")
> (100 . "AecImpEnt") (171 . 0) (100 . "AeccImpEnt") (102 .
> "AEC_SUBOBJECT}")
> (102 . "{AEC_NULLOBJECT}") (100 . "AeccDbEntity") (100 . "AeccDbFeature")
> (100
> . "AeccDbFeatureLine"))
>
> The data must be somewhere, but I have no idea how to get at it.
>
> Thanks!
> Brent McAnney
Message 4 of 7
BMcAnney
in reply to: BMcAnney

Thanks, Jeff!

I've managed to extract the vertex data that I needed with the (vlax-curve-*) tools.

Brent McAnney
Message 5 of 7
BMcAnney
in reply to: BMcAnney

Laurie,

Thank you for the response, but I have to admit I don't know what ADO is.

Brent McAnney
Message 6 of 7
nzeeben
in reply to: BMcAnney

Brent,

We have a .getpoints method on the featureline objects that was added for Civil 3D 2009. Doesnt likely help you today, but something to keep in mind as you move forward.
Thanks
Nick
Message 7 of 7
Anonymous
in reply to: BMcAnney

Hi Brent,

ADO is a general method of accessing databases via SQL (structured query
language).

I've attached a stripped and modified program I wrote for other purposes,
but which shows how you can use ADO to read data from the survey database.
The program will run in R2008 Civil 3D.

The program will simply list figure names from a selected survey database to
a messagebox.

A full listing of the capabilities of ADO and SQL occupies books by the
hundreds, so I can't really go into it here.


Regards

Laurie

wrote in message news:5903575@discussion.autodesk.com...
Laurie,

Thank you for the response, but I have to admit I don't know what ADO is.

Brent McAnney

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report