Entities on part do not transfer to assembly, therefore cannot be annotated with iLogic in drawing

Entities on part do not transfer to assembly, therefore cannot be annotated with iLogic in drawing

harvey_craig2RCUH
Advocate Advocate
257 Views
1 Reply
Message 1 of 2

Entities on part do not transfer to assembly, therefore cannot be annotated with iLogic in drawing

harvey_craig2RCUH
Advocate
Advocate

I added entities to a part. I placed it on a drawing and managed to place a dimension with iLogic.

harvey_craig2RCUH_0-1722344152199.png

This works!

 

To take it further I placed it in an assembly then placed the assembly on the drawing.

harvey_craig2RCUH_1-1722344223499.png

 

The entities don't appear in the assembly. I read that you can access them if you reference the part name in assembly. I have done this but I still get an error. Here is my code and error:

 

Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("HYD-A4:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW2")

Dim namedGeometry1 = VIEW1.GetIntent("BSPP Female Swivel", "-12BSPPFemSwiv_ShapeEndFace")
Dim namedGeometry2 = VIEW1.GetIntent("BSPP Female Swivel", "-12BSPPFemSwiv_SealEndFace")

Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions

ThisDrawing.BeginManage()
If True Then 
	Dim linDim1 = genDims.AddLinear("Dimension 1", VIEW1.SheetPoint(0.5, 1.4), namedGeometry1, namedGeometry2)
End If
ThisDrawing.EndManage()

Error on line 4 in rule: Rule4, in document: 094905HYD

GetIntent: No drawing curves found for entity "-12BSPPFemSwiv_ShapeEndFace" in component "BSPP Female Swivel" in view "VIEW2".
Exception of type 'Autodesk.iLogic.NoDrawingCurvesException' was thrown.

 

It has found the component but not the entities.

To recap, how do I get these entities in my part to my assembly? If I could do this I could fully annotate my drawings wit iLogic.

 

Thanks,

Harvey

 

0 Likes
Accepted solutions (1)
258 Views
1 Reply
Reply (1)
Message 2 of 2

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@harvey_craig2RCUH, it looks like the correct syntax to me. You should be able to extract the exact code you need for this though.

 

Try this: on the drawing view of the assembly, hover over the edge/line you want to annotate, and then right click and choose iLogic > Capture Current State, as shown.

 

Screenshot 2024-07-30 091451.png

 You'll see a resulting clipboard as such:

Screenshot 2024-07-30 091135.png

Next open your rule and right click in the rule editor and choose paste.

 

This should give you the exact path to the entity in the parts.

 

Note that if your part is in a subassembly you will see curly brackets enclosing the MakePath array that defines the path to the named entity. Example:

Dim Top_Face = VIEW6.GetIntent({"Assembly1:1", "Cube 100:1"}, "Top Face")

Curtis_Waguespack_0-1722349194528.png

 

 

 

EESignature

0 Likes