- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone. I have a solid with a spherical face created from a revolution. This face is identified as Face1. I haven't been able to create the radius in the IDW with the following code: Dim COTA4_FE = COTAS_FE.AddRadius("raioelectrodo2", REF1_FE, Face1_VIEW01_FE). This is just a fragment of the final code that should generate the radius. I think the problem is that this type of spherical face does not accept the definition of Radius. But I also don't know what other syntax besides radius I could use. Has anyone experienced something similar? When running the code, the following error appears: System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.GeneralDimensions.AddRadius(Point2d TextOrigin, GeometryIntent Intent, Boolean ArrowheadsInside, Boolean LeaderFromCenter, Boolean Jogged, Object DimensionStyle, Object Layer)
at Autodesk.iLogic.Core.ManagedDrawing.ManagedGeneralDimensions.AddRadius(String name, RadiusDimensionTextPositionSpec textOrigin, GeometryIntent intent, Boolean arrowHeadsInside, Boolean leaderFromCenter, Boolean jogged, DimensionStyle dimensionStyle, Layer layer)
at ThisRule.Main() in rule: REGRA MASTER IDW, in document DESENHOS.idw:line 1608
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Solved! Go to Solution.