Message 1 of 7
preset choices in the dialog brought up by PostRequestForElementTypePlacement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the following code to bring up the placement dialog for conduit:
var typeToPlace = new FilteredElementCollector(_document) .OfClass(typeof(ConduitType)) .Cast<ConduitType>() .Where(x => x.Name == "Rigid Nonmetallic Conduit (RNC Sch 40)") .FirstOrDefault(); _uiDocument.PostRequestForElementTypePlacement(typeToPlace);
it works but I want to preset the diameter based on the user's choices in a previous dialog and I cannot figure out how to do this through the API.
The screenshot's attached highlight exactly what I am trying to pre-populate