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.

Is there a sys value for 'Draw Symbol As Box'?

Started by Lar, December 11, 2016, 05:37:20 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Anybody know of a way for a macro to tell if 'Draw Symbol As Box' is enabled or not?

I have a macro where I select what I call 'Lar-Cams' (cameras) and the macro saves images based on what these cameras are aimed at. This macro could take a while to complete so I find something else to do while its running. However, if I come back later only to realize I had 'symbols drawn as box' enabled I would have to disable then run the macro again (the macro switches layers so I may not realize if no symbols are visible when I start the macro).

Right now my solution is to have a message at the very start of the macro to alert me to toggle if necessary, before I get up and walk away, but I'm hoping there's a better way.

Lar
ps: I hate toggles. They always generate so much extra coding in macros.

Bob P


Lar

This is what I have for sys(20008):
"20008 - Symbol Load/Merge disabled [1 prevents the file from being loaded as a symbol or from being merged into another drawing. 0 allows the drawing to be merged or used as a symbol (no layer protection in the loaded/merged data)]"

So I would say it is not a flag saying whether 'draw symbol as a block" is enabled or not.

What I'm looking for is something like the following:
sys(345)=0 tells a macro that Point Select Mode is off, and 1 tells that it is on,
...but the following code toggles it (turns it on if it's off and turns it off if it's on):
>PointSelectMode
{
}


...so, with that combination of codes (and since the sys is read only) if you need point select mode on you can first determine its status and if it's off then toggle it on. Without being able to determine its status you can't be sure what the result of the toggle will be.

Lar

DrollTroll

25 years with DesignCAD