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.

Arrow parameter

Started by Mark Laing, August 24, 2012, 07:20:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mark Laing

Is there a sys function or a 'query change' attribute that tells if an arrow is going to be curved or straight?
I want to find the current state, draw a curved arrow, and return to the previous state.

DrollTroll

#1
You can specify which way you want it drawn in the arrow macro command:
>Arrow
{
<Pointxyz 0, 0, 0
<Pointxyz 5, 0, 0
<Pointxyz 5, 5, 0
<CurvedArrow 1
<DoubleSided 0
}

However, there's no way to tell from BasicCAD if a particular arrow is curved or doubleside, or what the last-used settings were.

If you just want to set it back to non-curved after each curved usage, run the >Arrow command again with the NULL parameter and set CurvedArrow to zero

Edit: there IS a Query/Change parameter for double-headed arrows:
AW_DOUBLE
Declaration: Alias AW_DOUBLE   &H0904
Arguments: One numeric value (integer [0, 1]) indicating whether the arrow is double-headed or not.
Values: 0 = single-headed, 1 = double-headed
Accessibility: Query/Change
Purpose: This parameter can be used to determine or change whether the arrow has one arrowhead or two.

Query Usage:

Query AW_Double, adouble

where adouble is a numeric variable.

Change Usage:

Change AW_Double, adouble

where adouble can be a numeric variable or expression.
25 years with DesignCAD

DrollTroll

I think I can add an AW_CURVED parameter for  Query/Change for the next update.
25 years with DesignCAD