I try to place a Temporary In-Canvas Graphic in Revit like this:
Renderforest mod apk free download
var activeUiDoc = document.Application.ActiveUIDocument; var activeDbDoc = activeUiDoc.Document; using (var graphicsManager = TemporaryGraphicsManager.GetTemporaryGraphicsManager(activeDbDoc)) { try { var insertionPoint = activeUiDoc.Selection.PickPoint("Select insertion Point"); var logoData = new InCanvasControlData(@"C:\Program Files\Autodesk\Revit 2023\uniE1D2.bmp", XYZ.Zero); var index = graphicsManager.AddControl(logoData, ElementId.InvalidElementId); } catch(Exception ex) { return; } }
But I get "Failed to load the image from specified path." Error message. I have tried various different paths, the Error stays.
Is there an Issue with the Revit 2023 Api? What can i try to get my image displayed?
Thanks for the help.