Author Topic: autolisp samples for ACA AMEP CIVIL objects  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

jtm2020hyo

  • Newt
  • Posts: 196
autolisp samples for ACA AMEP CIVIL objects
« on: November 15, 2022, 10:53:07 PM »
Anyone could share some samples for manipulating ACA AMEP and CIVIL objects?

anything like extract object name styles, change PropertiesSetValues, Find string inside PropertiesSetData, etc.

Reason: I am learning AutoLisp

wkplan

  • Mosquito
  • Posts: 10
Re: autolisp samples for ACA AMEP CIVIL objects
« Reply #1 on: November 27, 2022, 11:37:51 AM »
Hi jtm2020hyo,

Autodesk changed the way ACA / AEC stores data around the year 2004. Till this date, data was stored in DXF-groupcodes, which could easyly accessed with LISP.
After that date, they changed the way the data was stored into a drawing. But the did not changed the LISP-enviroment.
They just added some function to display this objects, the so called proxy-object. (which in fact can also be a object created by some third-party application)

By this, you can see ACA/AEC objects, but you can not access their data with LISP.
Same thing with civil objects.

Now the good news:
- for learning lisp, you don't need this objects. All data prior 2004 was available through methods which where pretty the same as "in normal" LISP. (
Just be aware of "I can do anything with lisp"

I believe data is know stored in dictionarys, but there is is no documentation available.

Anyway, here are some links to study:
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/AEC-Window-Block-how-to-extract-ht-width-and-head-height/td-p/4871542
http://www.cadtutor.net/forum/showthread.php?104830-Can-Proxy-Objects-be-erased
http://www.theswamp.org/index.php?topic=46852.0 <- one of my favourites
http://www.theswamp.org/index.php?topic=46084.0

good luck
Wolfgang

BIGAL

  • Swamp Rat
  • Posts: 1097
  • 40 + years of using Autocad
Re: autolisp samples for ACA AMEP CIVIL objects
« Reply #2 on: Today at 01:09:37 AM »
Not quite right for CIV3D.

"By this, you can see ACA/AEC objects, but you can not access their data with LISP.
Same thing with civil objects."

The hard part is finding info and examples, of how to access the civ3d objects. Some are very straight forward using VL for example set a cogo point rotation, get info of a point and display as text. Think Elev or XYZ.

I have change surface displays via a Tool bar using icons like 0.1 0.25 0.5 1.0 OFF watershed, supports multiple surfaces. Way faster than using toolspace.

You can change label styles of a point or say group and so on.

One thing I have and Autodesk don't is import description key sets, you can export to say excel but no import option, if you want to make a new set can do, or add a few new ones, ours had like 250 Keys.

Ok now for some big hints yes data dictionaries involved and in some cases you have to jump sideways and look in another dictionary when changing object properties.

You need to open the civ3d database with correct version the numbers change but luckily you can look in registry for correct value.

If you can summarise what your looking for it may exist.





« Last Edit: Today at 01:17:36 AM by BIGAL »
A man who never made a mistake never made anything