- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @khadeerkruthi. Does it show an error dialog when it fails, or does it just not seem to do anything? If it is showing an error dialog, then can you please include what the second tab of that error dialog says here, one way or another, so we can look at it. Sometimes that will give us a clue as to where within the code the problem is occurring. Are you sure that is it returning the named object within the ObjectCollection it gets from the AttributeManager.FindObjects method? Are you sure it is finding a DrawingCurve of that object within the DrawingView? Maybe the Sheet.CreateGeometryIntent method needs the second, optional input to be specified. I can not be sure at this point. You could try inserting more code at those first two points to check if the ObjectCollection.Count = 0, and if so, provide some sort of feedback like a Logger.Debug() type line. Or maybe enclosing some of the lines of code within the Try side of Try...Catch statements, then provide some feedback on the Catch side to help indicate where it may be encountering problems.
Wesley Crihfield
(Not an Autodesk Employee)