Attach sketched symbol to end of centerline

Attach sketched symbol to end of centerline

DWhiteley
Advisor Advisor
595 Views
3 Replies
Message 1 of 4

Attach sketched symbol to end of centerline

DWhiteley
Advisor
Advisor

I've noticed that there is a post on how to attach a sketched symbol with a leader to drawing geometry.

But how can you attached a sketched symbol that does not have a leader?

 

I'm using vb.net

 

Thanks

 

Dave

Envisage UK Ltd

 

 

0 Likes
596 Views
3 Replies
Replies (3)
Message 2 of 4

BrandonBG
Collaborator
Collaborator

The method of placement is:

 

SketchedSymbols.Add( SketchedSymbolDefinition As Variant, Position As Point2d, [Rotation] As Double, [Scale] As Double, [PromptStrings] As Variant ) As SketchedSymbol

 

In my use, I've found the sketched symbol is placed at point2d at the center of the symbol. The only way to get around this is to move the center of the symbol by drawing some invisble circles or something.

 

You could use AddWithLeader and then turn off the leader line.

 

BrandonBG

0 Likes
Message 3 of 4

MechMachineMan
Advisor
Advisor
Also, you are much better to add it with the leader to the object you want to attach it to, then turn off the line - this way it actually is connected to the object.

Otherwise, using API, the symbol won't actually be attached to anything and wont move with the geometry.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 4 of 4

DWhiteley
Advisor
Advisor
Brilliant - I'll give this a try. thanks
0 Likes