Insertion point of Sketch symbol

Insertion point of Sketch symbol

Anonymous
Not applicable
779 Views
6 Replies
Message 1 of 7

Insertion point of Sketch symbol

Anonymous
Not applicable

How to get the insertion point of sketch symbol?

0 Likes
780 Views
6 Replies
Replies (6)
Message 2 of 7

Mario-Villada
Advocate
Advocate
Here is something from the help file
SketchedSymbol.Position Property
Property that gets and sets the origin position of the symbol on the sheet
Hope it helps.
0 Likes
Message 3 of 7

Anonymous
Not applicable

thanks but It can be used to get the position wrt sheet

 

and I want to get the insertion point as defined in the sketch symbol.

Any idea of this?

0 Likes
Message 4 of 7

Mario-Villada
Advocate
Advocate

You might be able to infer this by reading SketchedSymbol.Transformation.Translation.X and SketchedSymbol.Transformation.Translation.Y

 

this is what the help file says:

SketchedSymbol.Transformation Property

Property that provides the transform that is applied to display the associated sketched symbol definition in the correct location on the sheet. The matrix defines the sheet to sketched symbol transform.

0 Likes
Message 5 of 7

Anonymous
Not applicable

I am getting values for "SketchedSymbol.Transformation.Translation.X" and "SketchedSymbol.Transformation.Translation.Y" always as zero.

 

Any other way.

0 Likes
Message 6 of 7

YuhanZhang
Autodesk
Autodesk

Maybe you want to get is that InsertionPoint in the sketched symbol definition. You can query all the sketch points in SketchedSymbolDefinition.Sketch and check the SketchPoint.InsertionPoint to know which sketch point is that you need. Remember that a sketched symbol definition can have no insertion point defined explicitly. Once you define one in sketched symbol definition, then the insertion point would be the position of the sketched symbol instance when you place it onto a sheet.

 

Hope this clarifies.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Its a bit lengthy.

Anyway Thanks , Its working now.

0 Likes