Author Topic: read Civil objects  (Read 1835 times)

0 Members and 1 Guest are viewing this topic.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
read Civil objects
« on: January 11, 2013, 04:28:55 AM »
Hi all!

I want know which lines from a Civil-corridor is what.

Code: [Select]
Command: (entget (car (nentsel)))

Select object: ((-1 . <Entity name: 7ffff95fc60>) (0 . "AECC_CORRIDOR") (330 .
<Entity name: 7ffff99a9f0>) (5 . "43F86") (100 . "AcDbEntity") (67 . 0) (410 .
"Model") (8 . "KORRIDOR") (100 . "AeccDbEntity") (100 . "AeccDbCorridor"))

The problem with Autolisp is, I get not all information. Anybody know a way how I can read entities from a corridor ? I it only possible with dotNET programming ?

Regards Dirk

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: read Civil objects
« Reply #1 on: January 11, 2013, 04:46:36 AM »
You could try these: http://www.jtbworld.com/autocad2012.htm#New_AutoLISP_Functions

There's a notorious problem with vertical object types not being able to work through ActiveX. And the data in DXF form is usually stored in xdata/dictionaries and sometimes in weird formats (like some binary encoding).
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
Re: read Civil objects
« Reply #2 on: January 11, 2013, 05:44:15 AM »
Yes I thougt that too. So I have to ask in .NET forum or ?

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: read Civil objects
« Reply #3 on: January 11, 2013, 07:39:19 AM »
Have you tried those new functions yet? Try the dumpallproperties one to see if there's any properties you can get at for the C3D objects. Only if you can't use that, would I go to DotNet.

Unless you want to for some other reason. It's always good to open your horizons  ;)
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.