No work plane set in current view excception occuring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing code for tag alignment in normal files i am able to call pick object method .
elboworigin = uiApp.ActiveUIDocument.Selection.PickPoint("Pick the Elbow");
but when i call this method on linked files error is coming like below
I tried some code samples to resolve this issue but no help.
using (Transaction transaction = newTransaction(uiDoc.Document, "tt"))
{
transaction.Start();
Plane plane = newPlane(uiDoc.ActiveView.ViewDirection, uiDoc.ActiveView.Origin);
SketchPlane sp = uiDoc.Document.Create.NewSketchPlane(plane);
uiDoc.ActiveView.SketchPlane = sp;
uiDoc.ActiveView.ShowActiveWorkPlane();
transaction.Commit();
}
I tried with this code error is resolved but all the tags are placing in same line horizontally but my selection is different.