Re: SKETCH_PLANE_PARAM read only
Hi Christian,Depending on the element type the sketchplane may be governed by the level or the host. See FamilyPlacementType also.What are you trying to do? -Matt
View ArticleRe: Extract Fabrication Parts Connectors Values
Hi Kulkul, Not really my area of expertise, but does this snippet help?:Dim fi As DB.FamilyInstance = TryCast(elem, DB.FamilyInstance) Dim mepModel As DB.MEPModel = fi.MEPModel Dim mechEquip As...
View ArticleRe: Extract Fabrication Parts Connectors Values
Thanks Mathew. It doesn't Help. But i just got this by using "FabricationConfiguration & FabricationConfigurationGetInfo" Method.
View ArticleRe: SKETCH_PLANE_PARAM read only
Hey Matt, I am in a family document. The element I am trying to set the workplane for is a modelcurve. public static Result Create(ReferencePlane r, ModelCurve c) { Parameter p =...
View ArticleChanging zoom levels mess up display colors of a surface
Hi everyone, I am rendering some colors over a surface using SpatialFieldManager and AnalysisDisplayStyle. So basically I select the top face of a floor and then for different points on the floor, I...
View ArticleRe: SKETCH_PLANE_PARAM read only
Hi Christian,Right.You could do something line this if you know where you want your curve:Dim locationCurve As DB.LocationCurve = TryCast(modelCurve.Location, DB.LocationCurve) Dim startPoint As DB.XYZ...
View ArticleRe: SKETCH_PLANE_PARAM read only
The ModelCurve gets created in the right sketchplane, but is not associated with the workplane. The line sits in the right spot. This is not the issue. I just need to set the work plane. That's all I...
View ArticleRe: SKETCH_PLANE_PARAM read only
Christian, 'I've just hard-coded the ref plane id, but you can use a filteredelementcollector to find a specific one.Dim refPlane As DB.ReferencePlane = TryCast(doc.GetElement(New DB.ElementId(2628)),...
View ArticleRe: SKETCH_PLANE_PARAM read only
When I create the ModelCurve I am already assigning a sketchplane: ModelCurve hidCurve = famdoc.FamilyCreate.NewModelCurve(hidCurves[i], sk);Still the workplane is not set and I need to assign. I will...
View ArticleRe: SKETCH_PLANE_PARAM read only
Er, if you already have the sketch plane, then just set it via modelCurve.SketchPlane.If that doesn't work, it's probably because your line isn't parallel or on the sketch plane. I would imagine that's...
View ArticleRe: 2 Questions: How to change Revit Application Title Caption and OOTB progress
Thanks,I am using user32.dll to get the window text. However, i can't verify which Revit session I have open without getting the text string thru the Revit API's. Then I can do a string comparison to...
View ArticleRe: How to manipulate the "Project Browser" when programmatically acti
I guess before I start putting a bunch of code up here, perhaps a better question would be to assertain what GetMenu and GetSubMenu do. I was under the impression that GetMenu got menus in the UI....
View ArticleHow to filter for Drafting Views of a particular Type
I am looking for advice on how to make a particular FilteredElementCollector. I have a Detail File and I am looking to pull in a few details. They are Drafting View, and I want to restrict what I am...
View ArticleRe: Retrieving the original geometry of a wall
Hi Jeremy is there a way to get the original geometry of an element while iterating through the IExportContext interface? The PolymeshTopology argument of the OnPolymesh method seems contains the...
View ArticleRe: How to filter for Drafting Views of a particular Type
Dear michael, try this. FilteredElementCollector SectionCollector = new...
View ArticleRe: 2 Questions: How to change Revit Application Title Caption and OOTB progress
Hi, just for getting the main window title, there is no need for using the P/Invoke approach: System.Windows.Forms.MessageBox.Show(System.Diagnostics.Process.GetCurrentProcess().MainWindowTitle);...
View ArticleRe: How to filter for Drafting Views of a particular Type
Michael,In addition to Manish's filter, you may want to use a test like this to get the viewFamilyType:sh.gettypeidAnd compare that to the typeId of the viewfamilytype you want to match. Cheers, -Matt
View ArticleExtrusionRoof depth vector
Hi everyone,I am currently facing the problem that I am not able to find out the way roofs are constructed. When viewing the profile of an ExtrusionRoof for example it is not clear to me in which...
View ArticleRe: ExtrusionRoof depth vector
Hi , Roof by extrusion is working with workplanes. You did set your first workplane in the middle of your building. In my opinion you have to choose your first face as a workplane, afterwards your...
View ArticleSimple Cut Section
Hi, I have a preselectd room now how do I programatically cut a section for the room. Thanks & RegardsSanjay Pandey
View Article