Overview | Statement List


对象信息

Synopsis

OBTAIN/obj,variable list

Description

Causes the numerical data stored with an object to be assigned to numerical variables.

Parameters

Parameter

Description

obj

The existing object from which the variables in the variable list are set.

variable list

The variables which are assigned the parameter values obtained from the object. The number of variables required and/or their position in the list is dependent on the object type. Although the number of variables in the list and the number of parameters obtained do not have to be the same, the sequence of the variables in the list is extremely important. Any unmatched variables or parameters are ignored.

NOTE: If the number of elements in the variable list is greater than 51 or equal to zero (0) elements, a compilation error results because no object type returns more than 51 numbers or zero (0) elements.

The following table consists of the various object types, the parameters which may be obtained and their relative positions.

See Special Notes on Asterisks concerning items highlighted by single and double asterisks (*).

Object Type

Object Type #

Parameters and Definitions

Point

2

OBTAIN/obj,X,Y,Z

obj -- point object name
X -- coordinate
Y -- coordinate
Z -- coordinate

Line

3

OBTAIN/obj,X1,Y1,Z1,X2,Y2,Z2

obj -- line object name
X1 -- start point X coordinate
Y1 -- start point Y coordinate
Z1 -- start point Z coordinate
X2 -- end point X coordinate
Y2 -- end point Y coordinate
Z2 -- end point Z coordinate

Circle

5

OBTAIN/obj,X,Y,Z,R,A1,A2

obj -- circle object name
X -- center point coordinate
Y -- center point coordinate
Z -- center point coordinate
R -- radius
A1 -- start angle of arc
A2 -- end angle of arc

Ellipse

6

OBTAIN/obj,X,Y,Z,S1,S2,ROT,A1,A2

obj -- ellipse object name
X -- center point coordinate
Y -- center point coordinate
Z -- center point coordinate
S1 -- semi-major axis length
S2 -- semi-minor axis length
ROT -- rotation angle
A1 -- start angle of conic
A2 -- end angle of conic

Hyperbola

6

OBTAIN/obj,X,Y,Z,S1,S2,ROT,YMIN,
YMAX

obj -- hyperbola object name
X -- center point coordinate
Y -- center point coordinate
Z -- center point coordinate
S1 -- semi-transverse axis length
S2 -- semi-conjugate axis length
ROT -- rotation angle
YMIN-- minimum Y distance
YMAX-- maximum Y distance

Parabola

6

OBTAIN/obj,X,Y,Z,F,ROT

obj -- parabola object name
X -- vertex coordinate
Y -- vertex coordinate
Z -- vertex coordinate
F -- focal length
ROT -- rotation angle

Spline

9

OBTAIN/obj,0,PTS,TYP,PARM

obj -- spline object name
0 -- zero
requests object information**
PTS -- no. of points in spline
TYP -- spline type
general spline if TYP = 1
closed spline if TYP = 2
PARM -- total length

Spline

9

OBTAIN/obj,n,X,Y,Z,XC,YC,ZC,PARM

obj -- spline object name
n -- knot point number
requests point information**
X -- X coordinate
Y -- Y coordinate
Z -- Z coordinate
XC -- tangent vector X component
YC -- tangent vector Y component
ZC -- tangent vector Z component
PARM -- incremental arc length

Drafting Aids

25

OBTAIN/obj,(42 numerical variables)

Pos
1 * Character size
2 Text justification [1...3]
=1 -- Left justified
=2 -- Center justified
=3 -- Right justified
3 * Character font [1...14]
4 * Character density
5 * Text angle
6 Character size, line, arrow
Relationship [1,2]
=1 -- Related
=2 -- Independent
7 Arrow size
8 Text to dim. line dist.
9 Position to ext. line dist.
10 Ext. line past arrow dist.
11 Stubb size
12 ID Symbol size

 

25

13 Leader type [1...3]
=1 -- None
=2 -- Leader line
=3 -- Extension line
14 Leader orientation [1,2]
=1 -- Leader from Left
=2 -- Leader from right
15 Leader end position [1...5]
=1 -- Position on object
=2 -- Screen position
=3 -- ISO triangle
=4 -- Position on component
=5 -- Align Arrows
16 Draft aid line width [1...3]
=1 -- Normal
=2 -- Heavy
=3 -- Thin
17 Arrowhead type [1...6]
=1 -- Closed
=2 -- Open
=3 -- Cross
=4 -- Dot
=5 -- Origin symbol
=6 -- None
18 Form & positional tolerance
Ext. Line corner [1...4]
=1 -- Upper left
=2 -- Upper right
=3 -- Lower left
=4 -- Lower right
19 Object site [1...9]
=1 -- Top left
=2 -- Top center
=3 -- Top right
=4 -- Middle left
=5 -- Middle center
=6 -- Middle right
=7 -- Bottom left
=8 -- Bottom center
=9 -- Bottom right

 

25

20 Crosshatching material [1...8]
=1 -- Iron/general use
=2 -- Steel
=3 -- Brass/copper
=4 -- Rubber/plastic
=5 -- Refractory
=6 -- Marble/slate/glass
=7 -- Lead
=8 -- Aluminum/magnesium
21 Crosshatching angle
22 Crosshatching tolerance
23 Crosshatching distance
24 F&PT symbol frame size
25 Composite frame display [1,2]
=1 -- Displayed
=2 -- Not displayed
26 All around symbol [1,2]
=1 -- Displayed
=2 -- Not displayed
27 Runout arrowhead filled display [1,2]
=1 -- Displayed
=2 -- Not displayed
28 Runout arrowhead filled distance
29 Centerline extension line length
30 Centerline gap
31 Centerline cross size
32 Centerline angle
33 Target point size
34 Target point angle
35 Apparent intersection extension length
36-41 Leader end positions [1..5]
=1 -- Position on object
=2 -- Screen Position
=3 -- ISO triangle
=4 -- Position on component
=5 -- Align arrows
42 Number of leader lines

Dimension

26

OBTAIN/obj,(51 numerical variables)

Pos
1 Dim. value
2 Upper toler. value (in inches)**
3 Lower toler. value (in inches)**

 

26

4 Toler. type [1...11]
=1 -- No tolerance
=2 -- Limit, 1 line
=3 -- Limit, 2 lines
=4 -- Bilateral, 1 line
=5 -- Bilateral, 2 lines
=6 -- Unilateral, above
=7 -- Unilateral, below
=8 -- Basic
=9 -- Reference
=10 -- Limit, larger first
=11 -- Limit, larger below
5 Toler. text placement [1...3]
=1 -- Tolerance below
=2 -- Tolerance after
=3 -- Tolerance above
6 No. of dim. dec. plcs.
7 No. of dim. toler. dec. plcs.
8 Denominator for fractions
[1,2,4,8,16,32,64]
9 Linear units [1...5]
=1 -- Millimeters
=2 -- Meters
=3 -- Inches
=4 -- Arch. feet--inches
=5 -- Eng. feet-inches
10 Fraction type [1...4]
=1 -- Decimal
=2 -- 2/3 Size Common
=3 -- 3/4 Size
=4 -- Full
11 Angular units [1...4]
=1 -- Fractional degrees
=2 -- Whole degrees
=3 -- Degrees, minutes
=4 -- Degrees, minutes, seconds
12 Dual type [1...5]
=1 -- Dual below
=2 -- Dual after
=3 -- Dual above
=4 -- Dual below
=5 -- Non-dual

 

26

13 No. of dual dim. dec. plcs.
14 No. of dual dim. toler. dec. plcs.
15 Denominator for dual dim fractions
[1,2,4,8,16,32,64]
16 Dual dim. linear units [1...5]
=1 -- Millimeters
=2 -- Meters
=3 -- Inches
=4 -- Arch. feet-inches
=5 -- Eng. feet-inches
17 Dual dim. fraction type [1...4]
=1 -- Decimal
=2 -- 2/3 Size Common
=3 -- 3/4 Size
=4 -- Full
18 Character size, line, arrow
relationship [1,2]
=1 -- Related
=2 -- Independent
19 Arrow size
20 Text to dim. line dist.
21 Position to ext. line dist.
22 Ext. line past arrow dist.
23 Stubb size
24 ID symbol size
25* Character size
26 Text justification [1...3]
=1 -- Left justified
=2 -- Center justified
=3 -- Right justified
27 Text orientation [1...4]
=1 -- Text Horizontal
=2 -- Text aligned w/dim. line
=3 -- Text over dim. line
=4 -- Text by angle
28* Character font [1...14]
29* Character width
30* Text angle
31 Text entry mode [1...4]
=1,2 -- Automatic Text
=3,4 --Manual Text
32 Leader orientation(1-2)
=1 -- Leader from left
=2 -- Leader from right

 

26

33 Ext. line display [1...4]
=1 -- Both ext. line displayed
=2 -- Ext. line 1 displayed
=3 -- Ext. line 2 displayed
=4 -- Ext. lines not displayed
34 Dim. line width [1...3]
=1 -- Normal
=2 -- Heavy
=3 -- Thin
35 Ext. line added angle
36 Arrowhead 1 type [1...6]
=1 -- Closed
=2 -- Open
=3 -- Cross
=4 -- Dot
=5 -- Origin symbol
=6 -- None
37 Decimal point form [1,2]
=1 -- Period
=2 -- Comma
38 Text & arrow plcmnt. [1...3]
=1 -- Text & arrows auto.
=2 -- Text manual, arrows in
=3 -- Text manually, arrows out
39 Appended text plcmnt. [1...5]
=1 -- Below main text
=2 -- After main text
=3 -- Above main text
=4 -- Before main text
=5 -- Before and after
main text
40 Dia./rad. text plcmnt. [1...5]
=1 -- Below main text
=2 -- After main text
=3 -- Above main text
=4 -- Before main text
=5 -- Omitted

 

26

41 Object site [1...9]
=1 -- Top left
=2 -- Top center
=3-- Top right
=4-- Middle left
=5-- Middle center
=6-- Middle right
=7-- Bottom left
=8 -- Bottom center
=9 -- Bottom right
42 Ordinate dim. positive quadrant [1...4]
=1 -- Quadrant 1
=2 -- Quadrant 2
=3 -- Quadrant 3
=4 -- Quadrant 4
43 Arrow display [1..4]
=1 -- Both arrows displayed
=2 -- Arrow 1 displayed
=3 -- Arrow 2 displayed
=4 -- Arrows not displayed
44 F&PT symbol frame size
45 Composite frame display [1,2]
=1 -- Displayed
=2 -- Not displayed
46 Runout arrowhd filled disp. status [1,2]
=1 -- Displayed
=2 -- Not displayed
47 Runout arrowhead filled distance
48 Arc length symbol status [1,2]
=1 -- symbol displayed
=2 -- symbol not displayed
49 Extension line distance to 2nd ref. pt.
50 Arrowhead 2 type [1..6]
=1 -- Closed
=2 -- Open
=3 -- Cross
=4 -- Dot
=5 -- Origin symbol
=6 -- None
51 Radius to arc center [1,2]
=1 -- Yes
=2 -- No

Solid Body

70

OBTAIN/obj,value

1Solid Body
2Sheet Body

Section Line

202

OBTAIN/obj,(36 numerical variables)

Pos
1 = Type of Section Line
2 = Type of Display
3 = Type of Arrowhead
4 = Filled Arrowhead Control
5 = Number of Segments in Leg 1
6 = Leg Corresponding to Cut Plane
(for Revolved sections only)
7Invalid Section Line Flag
8-10 = Step Direction
11-13 = Direction Vector
14-16 = Rotation Point
(for Revolved sections only)
17-22 = Arrow Origins
23,24 = Arrow Angles
25 = Arrow Distance Past Part
26 = Arrow Tail Length
27 = Arrow Size
28 = Arrow Filled Distance
29 = Arrow Included Angle
30 = Stub Size
31-33 = Original User-specified Step Direction
34-36 = `Original User-specified Arrow Direction

Special Notes on Asterisks

** Returns tolerances in inches regardless of the linear unit. To read the SI tolerance, use the EDA &TOLM.

* Since these parameters relate to a single text string and since a drafting object may contain several text strings, the values returned are for the text string with the highest priority. The relative priority of the strings is as follows:

Text Type

Priority

Main dimension, note & label text

HIGHEST

Dual dimension text

NEXT

Main dimension tolerance text

NEXT

Dual dimension tolerance text

NEXT

Diameter & radius symbol text

NEXT

Text with form & positional symbol

NEXT

Text appended during creation

NEXT

Circle - ID symbol text input during creation ("IDC")

NEXT

Divided circle - ID symbol text IDC

NEXT

Square - ID symbol text IDC

NEXT

Divided square - ID symbol text IDC

NEXT

Hexagon - ID symbol text IDC

NEXT

Divided hexagon - ID symbol text IDC

NEXT

Triangle point up - ID symbol text IDC

NEXT

Triangle point down - ID symbol text IDC

NEXT

Datum target - ID symbol text IDC

NEXT

Rounded box - ID symbol text IDC

NEXT

Form & positional tolerance symbol text IDC

NEXT

Text with form & positional symbol IDC

NEXT

Second text appended during creation

NEXT

Circle - ID symbol 2nd text input during creation ("IDC2")

NEXT

Divided circle - ID symbol text IDC2

NEXT

Square - ID symbol text IDC2

NEXT

Divided square - ID symbol text IDC2

NEXT

Hexagon - ID symbol text IDC2

NEXT

Divided hexagon - ID symbol text IDC2

NEXT

Triangle point up - ID symbol text IDC2

NEXT

Triangle point down - ID symbol text IDC2

NEXT

Rounded box - ID symbol text IDC2

NEXT

Datum target - ID symbol text IDC2

NEXT

Form & positional tolerance symbol text IDC2

NEXT

Text with form & positional symbol IDC2

NEXT

Text appended during editing ("ADE")

NEXT

Circle - ID symbol text ADE

NEXT

Divided circle - ID symbol text ADE

NEXT

Square - ID symbol text ADE

NEXT

Divided square - ID symbol text ADE

NEXT

Hexagon - ID symbol text ADE

NEXT

Divided hexagon - ID symbol text ADE

NEXT

Triangle point up - ID symbol text ADE

NEXT

Triangle point down - ID symbol text ADE

NEXT

Datum target - ID symbol text ADE

NEXT

Rounded box - ID symbol text ADE

NEXT

Form & positional tolerance symbol text ADE

NEXT

Text with form & positional tolerance symbol ADE

LOWEST

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.