dopefish2112
AutoCAD Fabrication Plugin Exception
Thank you for taking the time to respond.
I have consulted the API documentation as well as forums and classes from the dev team that released the API. Most of this code is copy pasta from API and dev examples.
I am debugging using Visual Studio
I do not have access to Autodesk Dev Support
the ent variable should have the doc inherited from the selection Result. See below. If i am doing that wrong please let me know.
Document doc = Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
Editor ed = doc.Editor;
TypedValue[] typeArray = new TypedValue[1];
typeArray[0] = new TypedValue((int)DxfCode.Start, "MAPS_SOLID");
SelectionFilter selFilter = new SelectionFilter(typeArray);
PromptSelectionResult selResult = ed.GetSelection(selFilter);
Expected behaviour is based on API docs, forum posts and an AU class showing the code working in the manner expected.
16 replies
AutoCAD Fabrication Plugin Exception
Thanks for taking the time to reply everyone. code can be found here
https://pastebin.com/5phx8T4M
epxected behaviour when invoking the job.items collection is to a collections of objects of type Item from the Fabrication API. what i get is this
https://pastebin.com/mnU4cZPg
i have tried to bypass this using actual selection set filtering but I can not get any variables of type Item to have any value besides null
16 replies