- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I added entities to a part. I placed it on a drawing and managed to place a dimension with iLogic.
This works!
To take it further I placed it in an assembly then placed the assembly on the drawing.
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
Solved! Go to Solution.