News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Entity type codes

Started by Dr PR, July 25, 2012, 04:34:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I have searched through the Forum, Reference Manual and V17 macro help files and I can't find a list of object/entity codes for use in macros. Anyone know where to find this information?

Phil
DesignCAD user since 1987

MarkX

The Entity codes (if that is what you want) are buried in the GetAttr function description in the macro reference help file.

HTH
Mark

Dr PR

#2
Mark,

Thanks. I have the V17 macro help file and it doesn't list Getattr in the Macro Command list. However I did look around and there is a GetEntity function, and it has a link to the GETATTR function.

I'm not sure I understand the differences between functions, statements and commands, but I was looking in the wrong place.

Thanks.

Phil
DesignCAD user since 1987

JJG

Phil,

As Mark said, the list of object/entity codes for use in macros is indeed in the Getattr Statment (or Putattr Statment), not macro command, found in the macro17 help.

below an image of it.

In summary (very short) :

Statments are "words" of the Basicad language (ie.refers to a DesignCAD macro language statement, which you use to create the "logic" of your code),
Functions are some code such as SIN(x) or SYS(32) [ie. can be used in numeric expressions, or can be used for work concerning strings, system or numerical or for system variable parameters (the sys() or sys$() )],
and Macro Commands refer to the DesignCAD drawing commands, such as Line or Hatch.
OK ?

prl

Phil,

Things are a bit here and there.  Yes, macros17.hlp is the bible.  Don't waste too much time trying to reinvent the wheel. Whatever you are thinking, just ask, chances are one of us has been there, done that, etc.

Yes there are statements, functions, commands, lots of gotchas and then tricks.  The getselect statement is one of those gotchas.  It doesn't really "get" everything, it misses grid lines and hence causes trouble when dealing with solids.  This has been solved with a subroutine that I posted somewhere in the basiccad section.