Author Topic: Access AEC Roof object properties?  (Read 319 times)

0 Members and 1 Guest are viewing this topic.

kenkrupa

  • Newt
  • Posts: 76
Access AEC Roof object properties?
« on: July 21, 2019, 05:08:23 PM »
I'm not finding any way to do this programmatically. Anyone?

BIGAL

  • Bull Frog
  • Posts: 298
  • 30 + years of using Autocad
Re: Access AEC Roof object properties?
« Reply #1 on: July 22, 2019, 01:41:23 AM »
If its anything like civ3d AEC objects its not straight forward.

Your 1st insight is using dumpit.lsp to interrogate object properties. In some cases its not a direct line of getting info, its often the object name but the details are in a totally different area.

Try to find some API info like tree diagrams that give ideas into where object data is held.
A man who never made a mistake never made anything

kenkrupa

  • Newt
  • Posts: 76
Re: Access AEC Roof object properties?
« Reply #2 on: July 22, 2019, 10:51:44 AM »
Dumping the object properties does not reveal much. Can't find any other info - that's why inquiring here.

BIGAL

  • Bull Frog
  • Posts: 298
  • 30 + years of using Autocad
Re: Access AEC Roof object properties?
« Reply #3 on: July 23, 2019, 10:43:33 PM »
Post the dump.

If you look at this (vlax-for j (vlax-get *AeccDoc* 'AlignmentsSiteless) its retrieving alignment details from the database *AeccDoc* variable which is different for every CIV3D "AeccXUiLand.AeccApplication.13.2" is 2020.

So there will be the equivalent Architectural application name and version, without that you will be limited. Google maybe Get Application.

See what this reveals

Code: [Select]
(setq f t)
(while (setq a (tblnext "appid" f))
(if f (setq f nil)) ;set to get next table entry
(princ (cdr (assoc 2 a)))
(princ "\n")
)
« Last Edit: July 23, 2019, 10:49:46 PM by BIGAL »
A man who never made a mistake never made anything

kenkrupa

  • Newt
  • Posts: 76
Re: Access AEC Roof object properties?
« Reply #4 on: July 24, 2019, 10:40:58 AM »
Thanks, but I don't see that getting anything useful. This is what I get with that code:
ACAD
AcadAnnotative
ACAD_NAV_VCDISPLAY
ACAD_EXEMPT_FROM_CAD_STANDARDS
AECBASE
ACAD_PSEXT
AEC_OBJVER_INFO
AcadAnnoAV
ACAD_DSTYLE_DIMJAG
ACAD_DSTYLE_DIMTALN
AcAecLayerStandard
AEC_MEMBER_STYLE_AUTOTRIM_XDATA
PalladioXData
ManulPointsAssociative
AEC_SCHEDULEDATA_FORMULA_SAMPLES
AcDbBlockRepETag
AECB_HALOED_LINE_OUTLINE_EDGE_LIMIT
AECB_OSNAP_MEP

Am I missing a next step - what to do with any of that?

BIGAL

  • Bull Frog
  • Posts: 298
  • 30 + years of using Autocad
Re: Access AEC Roof object properties?
« Reply #5 on: July 28, 2019, 11:50:52 PM »
You will just have to keep googling or if its Architecture does it have API examples. They will be in a deep directory under the likes of c:\program files\Autodesk\architecture etc.
A man who never made a mistake never made anything