TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Access Value of unconstrained Dim
Read 2504 times
* August 19, 2013, 01:41:54 AM
Does anybody know how to access the value of an unconstrained associative Dim, as I would like to assign the value to a variable and be able to read its value just like a constrained dim even though you can not update it in the calculator palette.

I think The value is something like %dimvalue, but don't know how to get the id of the dim object.


Any help appreciated!


Mike Geraghty

Logged


* August 19, 2013, 03:32:58 AM
#1
I managed to find the id and child graphics of the dim with an old version of the TCAnnotate tool, It is a pretty long listing, and I have only included the main graphic and not the child graphics ,but here it is below. All I need to do now is find out how to set the value of the dim , which is an angle to a variable in VBScript. The Value appears to be $DIMVALUE (Highlighted in Blue in the listing below).

Graphic object data below:-

----------------------------------------------------------------------------------------------------------------------------------

_______________ Graphic Entity 63 ________________
Basic Properties:
    BrushStyle: None
    BuiltIn: False
    Closed: False
    Cosmetic: False
    Deleted: False
    Editable: True
    FixCS: False
    Child Graphics: 8
    ID: 63
    Index: 17
    Layer: dims
    LineStyle: CONTINUOUS
    Name: <65.9008965000°>
    Nodes: 6
    Reference Point: 5.3023505363905, 4.45015606166459, 0
    RegenType: TCW25DimAng
    Root: False
    Selected: True
    Type: TCW25DimAng
    TypeByValue: 11
    Unbounded: False
    Visible: True

Extended Properties:
    Name: PenColor; Type: 3; Value: 0
    Name: PenWidth; Type: 5; Value: 0
    Name: PenScale; Type: 5; Value: 1
    Name: PenStyle; Type: 8; Value: CONTINUOUS
    Name: ScaleSystem; Type: 17; Value: 2
    Name: Layer; Type: 8; Value: dims
    Name: Info; Type: 8; Value: <65.9008965000°>
    Name: URL; Type: 8; Value:
    Name: StyleId; Type: 8; Value: 524289
    Name: TextFont; Type: 8; Value: Times New RomanC:\Program Files\IMSIDesign\TCWP19\Program\Fonts\
    Name: TextMode; Type: 2; Value: 1
    Name: DatabaseID; Type: 3; Value: 63
    Name: Kind; Type: 3; Value: 11
    Name: Closed; Type: 2; Value: 0
    Name: Selected; Type: 2; Value: 1
    Name: RegenMethod; Type: 8; Value: TCW25DimAng
    Name: LimitVertices; Type: 3; Value: 1
    Name: Print style; Type: 8; Value: By Layer
    Name: M_ObjectType; Type: 8; Value: Angular Dimension
    Name: $DIMASO; Type: 2; Value: 1
    Name: $DIMBLK1; Type: 2; Value: 1
    Name: $DIMBLK2; Type: 2; Value: 1
    Name: $DIMASZ; Type: 5; Value: 0.25
    Name: $DIMDLE; Type: 5; Value: 0
    Name: $DIMSTYLE; Type: 2; Value: 0
    Name: $DIMBLK; Type: 2; Value: 1
    Name: $DIMCLRD; Type: 3; Value: -4
    Name: $DIMSD1; Type: 2; Value: 0
    Name: $DIMSD2; Type: 2; Value: 0
    Name: $DIMSOXD; Type: 2; Value: 0
    Name: $DIMCLRE; Type: 3; Value: -4
    Name: $DIMSE1; Type: 2; Value: 0
    Name: $DIMSE2; Type: 2; Value: 0
    Name: $DIMEXE; Type: 5; Value: 0.125
    Name: $DIMEXO; Type: 5; Value: 0.0625
    Name: $DIMSCALE; Type: 5; Value: 1
    Name: $DIMDLI; Type: 5; Value: 0.375
    Name: $DIMASSPLINE; Type: 2; Value: 0
    Name: $DIMTOFL; Type: 2; Value: 1
    Name: $DIMARCLENGTH; Type: 2; Value: 0
    Name: $DIMFRAC; Type: 2; Value: 2
    Name: $DIMCLRT; Type: 3; Value: -4
    Name: $DIMTXT; Type: 5; Value: 0.25
    Name: $DIMGAP; Type: 5; Value: 0.0625
    Name: $DIMTBST; Type: 2; Value: 0
    Name: $DIMOBLIQUEANGLE; Type: 5; Value: 0
    Name: $DIMJUST; Type: 2; Value: 0
    Name: $DIMTAD; Type: 2; Value: 1
    Name: $DIMTMOVE; Type: 2; Value: 0
    Name: $DIMTIH; Type: 2; Value: 1
    Name: $DIMTOH; Type: 2; Value: 0
    Name: $DIMTIX; Type: 2; Value: 0
    Name: $DIMTBSZ; Type: 5; Value: 0.9
    Name: $DIMTBFT; Type: 2; Value: 0
    Name: $DIMUNIT; Type: 2; Value: 0
    Name: $DIMRND; Type: 5; Value: 1E-07
    Name: $DIMLFAC; Type: 5; Value: 1
    Name: $DIMLUNIT; Type: 2; Value: 2
    Name: $DIMAUNIT; Type: 2; Value: 0
    Name: $DIMZIN; Type: 2; Value: 1
    Name: $DIMDEC; Type: 2; Value: 2
    Name: $DIMAUN; Type: 2; Value: 1
    Name: $DIMPOST; Type: 8; Value:
    Name: $DIMPREFIX; Type: 8; Value:
    Name: $DIMSUFFIX; Type: 8; Value:
    Name: $DIMALT; Type: 2; Value: 0
    Name: $DIMALTAUN; Type: 2; Value: 1
    Name: $DIMALTU; Type: 2; Value: 2
    Name: $DIMALTD; Type: 2; Value: 2
    Name: $DIMALTF; Type: 5; Value: 1
    Name: $DIMAPOST; Type: 8; Value:
    Name: $DIMALTPREFIX; Type: 8; Value:
    Name: $DIMALTSUFFIX; Type: 8; Value:
    Name: $DIMALTZ; Type: 2; Value: 0
    Name: $DIMALTRND; Type: 5; Value: 0.01
    Name: $DIMTOL; Type: 2; Value: 0
    Name: $DIMTOLLIM; Type: 2; Value: 0
    Name: $DIMTP; Type: 5; Value: 0
    Name: $DIMTM; Type: 5; Value: 0
    Name: $DIMTOLJ; Type: 2; Value: 2
    Name: $DIMTDEC; Type: 2; Value: 3
    Name: $DIMTZIN; Type: 2; Value: 0
    Name: $DIMTFAC; Type: 5; Value: 1
    Name: $DIMALTTD; Type: 2; Value: 2
    Name: $DIMALTTZ; Type: 2; Value: 0
    Name: $DIMVALUE; Type: 5; Value: 65.9008964856163
    Name: $DIMVALUENAME; Type: 8; Value:
    Name: $DIMTSZ; Type: 2; Value: 0
    Name: $DIMTVP; Type: 5; Value: 0
    Name: $$ArrowInside; Type: 2; Value: 0
    Name: PenColor; Type: 3; Value: 0
    Name: ExplodeScale; Type: 5; Value: 1
    Name: $DIMDSEP; Type: 8; Value:
    Name: $DIMAZIN; Type: 2; Value: 0
    Name: $DIMADEC; Type: 2; Value: 10
    Name: $DIMSAH; Type: 2; Value: 0
    Name: $DIMATFIT; Type: 2; Value: 3
    Name: $DIMLDRBLK; Type: 2; Value: 1
    Name: $DIMUPT; Type: 2; Value: 0
    Name: $DIMFIT; Type: 2; Value: 3
    Name: $DIMSHO; Type: 2; Value: 1
    Name: $DIMLWD; Type: 5; Value: -4
    Name: $DIMLWE; Type: 5; Value: -4
    Name: $DIMSIGNTOL; Type: 8; Value:
    Name: $DIMUNITS; Type: 3; Value: 0
    Name: $DIMALTUNITS; Type: 3; Value: 0
    Name: $DIMARCSYM; Type: 2; Value: 0
    Name: $DIMFXL; Type: 5; Value: 1
    Name: $DIMFXLON; Type: 2; Value: 0
    Name: $DIMJOGANG; Type: 5; Value: 0.785398163397448
    Name: $DIMLIM; Type: 2; Value: 0
    Name: $DIMLTEX1; Type: 3; Value: -3
    Name: $DIMLTEX2; Type: 3; Value: -3
    Name: $DIMLTYPE; Type: 3; Value: -3
    Name: $DIMTFILL; Type: 2; Value: 0
    Name: $DIMTFILLCLR; Type: 3; Value: 16777215
    Name: $DIMTFRAME; Type: 2; Value: 0
    Name: $DIMTXSTY; Type: 3; Value: 65537
    Name: $DIMCMARK; Type: 2; Value: 0
    Name: $DIMCEN; Type: 5; Value: 0.25
    Name: #[email protected]_ToolInfo Properties; Type: 8; Value: [email protected]


Vertices (8):
    0: 6.36767164273822,6.33704297691247,0
    1: 6.36767164273822,6.33704297691247,0
    2: 3.71879533019573,4.68708553516614,0
    3: 6.88590574258527,2.56326914641671,0
    4: 6.36767164273822,6.33704297691247,0
    5: 5.21315565666134,4.75465853190698,0
    6: 5.37986455411379,4.2312867833583,0
    7: 5.37986455411379,4.2312867833583,0

 



Logged


* August 19, 2013, 05:59:43 PM
#2
If I can find out how to access this dimension value property, I can use the constrained objects, along with non constrained associated dims to drive the movements of my 3d model in animation lab.

Logged


* October 11, 2013, 07:04:49 AM
#3
I posted this a couple of moths ago, but have not had any replies yet, maybe someone who has not read the post may have some idea's.

Logged


* November 16, 2013, 05:38:07 AM
#4
Bump!. Anyone have any ideas on this yet?.

Logged