Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There are a number of posts about this like this one, this one, and this one, but unfortunately none of them deal with how to get the geometry intent of a surface texture symbol. I can have the symbol selected, but I can't figure out how to extract the GeometryIntent to which the leader can attach.
I've got my sketched symbol inserted and "oPoint", and surface texture symbol selected (obj). For all the other times I add a leader I just use the following snippet:
Dim oGI As GeometryIntent
Dim oCol As ObjectCollection
oCol = _invApp.TransientObjects.CreateObjectCollection
Dim refKey() As Byte = New Byte() {}
Call oDrawDoc.ReferenceKeyManager.StringToKey(Values, refKey)
Dim obj As Object = oDrawDoc.ReferenceKeyManager.BindKeyToObject(refKey)
oGI = oSheet.CreateGeometryIntent(obj, oPoint)
oCol.Add(oPoint)
oCol.Add(oGI)
Call oSketchedSymbol.Leader.AddLeader(oCol)
oSketchedSymbol.LeaderVisible = FalseBut this fails on creating the leader.
I'm hiding the leader in the end so it doesn't matter really what exact point the leader is connecting to, but for the life of me I can't figure out how to get it to attach.
Solved! Go to Solution.
