APS - cant find named entity

APS - cant find named entity

m_baczewski
Advocate Advocate
152 Views
0 Replies
Message 1 of 1

APS - cant find named entity

m_baczewski
Advocate
Advocate
Has anyone ever had a problem finding a signed surface through APS? I use it to add dimensions. Everything works fine in Inventor, but when I upload model and drawing to APS, I receive the following error:
 
Details: Autodesk.iLogic.InventorHostException: GetIntent: No drawing curves found for entity "Plaszczyzna1" in component "DELTA_CORNER_PUSZKA, BLACHA_SRODEK" in view "A".
[11/06/2023 10:57:02]  Exception of type 'Autodesk.iLogic.NoDrawingCurvesException' was thrown.
[11/06/2023 10:57:02]    at Autodesk.iLogic.Core.ManagedDrawing.GeometryIntentHelper.GetGeometryIntent(DrawingView view, String parameterName, Boolean mayReturnCenterMark, Centermark& outCM)
[11/06/2023 10:57:02]    at Autodesk.iLogic.Core.ManagedDrawing.ManagedDrawingView.GetIntent(ComponentArgument component, String entityName, PointIntentEnum intent, CurveChoiceSpec nearPoint)
[11/06/2023 10:57:02]    at ThisRule.Main()
[11/06/2023 10:57:02]    at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
[11/06/2023 10:57:02]    at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
[11/06/2023 10:57:02]     InventorCoreConsole.exe Error: 0 : iLogic error 
 
 
My part of code looks like:
f jakaStrona = "LEWA"
	'[ widok 2
	Dim Krawedz1 = WIDOK2.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT" }, "Krawedz2")
	Dim Krawedz2 = WIDOK2.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT" }, "Krawedz3")
	
	polozenieWymiaruWidok2_1 = oTG.CreatePoint2d((WIDOK2.Center.X)/10, (WIDOK2.Center.Y)/10 +3)
	Dim linDim1 = genDims.AddLinear(polozenieWymiaruWidok2_1, Krawedz1, Krawedz2)
	
	Dim Krawedz8 = WIDOK2.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT"}, "Krawedz5")
	Dim Krawedz9 = WIDOK2.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT" }, "Krawedz4")

	polozenieWymiaruWidok2_2 = oTG.CreatePoint2d((WIDOK2.Center.X)/10-3, (WIDOK2.Center.Y)/10 )
	Dim linDim7 = genDims.AddLinear(polozenieWymiaruWidok2_2, Krawedz8, Krawedz9)
	
	']
	'[ widok 3
	Dim Krawedz3 = WIDOK3.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_LEWA_PRAWA" }, "Krawedz3", PointIntentEnum.kMidPointIntent)
	Dim Krawedz4 = WIDOK3.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT" }, "Krawedz1")
	
	polozenieWymiaruWidok3 = oTG.CreatePoint2d((WIDOK3.Center.X)/10, (WIDOK3.Center.Y)/10 +3)
	Dim linDim2 = genDims.AddLinear(polozenieWymiaruWidok3, Krawedz3,Krawedz4)
	']
	'[ widok A
	Dim Plaszczyzna1 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT"}, "Plaszczyzna1")
	Dim Krawedz5 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_LEWA_PRAWA" }, "Krawedz5")
	polozenieWymiaruWidokA_1 = oTG.CreatePoint2d((WIDOKA.Center.X) / 10, (WIDOKA.Center.Y) / 10 + 3)
	Dim linDim3 = genDims.AddLinear(polozenieWymiaruWidokA_1, Plaszczyzna1, Krawedz5)
	
	Dim Plaszczyzna2 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_FRONT" }, "Plaszczyzna1") 
	Dim Plaszczyzna3 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_SRODEK" }, "Powierzchnia1")  '----> error is here
	polozenieWymiaruWidokA_2 = oTG.CreatePoint2d((WIDOKA.Center.X) / 10, (WIDOKA.Center.Y) / 10 - 3)
	Dim linDim4 = genDims.AddLinear(polozenieWymiaruWidokA_2, Plaszczyzna2, Plaszczyzna3)
	

	
	Dim Krawedz6 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_LEWA_PRAWA"}, "Krawedz4")
	Dim Krawedz7 = WIDOKA.GetIntent({"DELTA_CORNER_PUSZKA", "BLACHA_LEWA_PRAWA" }, "Krawedz6")
	
	polozenieWymiaruWidokA_3 = oTG.CreatePoint2d((WIDOKA.Center.X) / 10-2, (WIDOKA.Center.Y) / 10)
	Dim linDim5 = genDims.AddLinear(polozenieWymiaruWidokA_3, Krawedz6, Krawedz7)
	
	Dim Plaszczyzna4 = WIDOKA.GetIntent({"PALNIK", blachyPalnika, podzlozeniePalnika , czescPalnika }, "Plaszczyzna1")

	polozenieWymiaruWidokA_4 = oTG.CreatePoint2d((WIDOKA.Center.X) / 10-3, (WIDOKA.Center.Y) / 10)
	Dim linDim6 = genDims.AddLinear(polozenieWymiaruWidokA_4, Krawedz6, Plaszczyzna4)
	
	Dim Plaszczyzna5 = WIDOKA.GetIntent({"PALNIK", blachyPalnika, podzlozeniePalnika, czescPalnika}, "Plaszczyzna2")
	
	polozenieWymiaruWidokA_5 = oTG.CreatePoint2d((WIDOKA.Center.X) / 10, (WIDOKA.Center.Y/10)-5)
	Dim linDim8 = genDims.AddLinear(polozenieWymiaruWidokA_5, Plaszczyzna5, Plaszczyzna3)
 
I tried:
 
Change the name of the plane.
The only solution is to comment out the line of code that assigns this plane to the variable.
0 Likes
153 Views
0 Replies
Replies (0)