Drawingsketch projected geometry get reference

Drawingsketch projected geometry get reference

Caduser1FQQYS
Explorer Explorer
194 Views
1 Reply
Message 1 of 2

Drawingsketch projected geometry get reference

Caduser1FQQYS
Explorer
Explorer

Hey,

 

i have a sketch where i project centerlines from the sheet

oSketchEntity = oSketch.AddByProjectingEntity(ocl)

 now when i run this rule a second time and it shouldn't add the line but get the correct sketchentity object

 

			For Each oLine As SketchLine In oSketch.SketchLines
				If oLine.ReferenceComponent.Name = ocl.Name Then
					oSketchEntity = oLine
				End If
			Next 

 this won't work because there is no reference component to that line.

 

Although i'm sure every line in that sketch is added by the projectingentity method.

So how can i go from a sketchline object back to the centerline object.

0 Likes
195 Views
1 Reply
Reply (1)
Message 2 of 2

Ralf_Krieg
Advisor
Advisor

Hello

 

Late, but have you tried the oLine.ReferencedEntity instead?


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes