Quantcast
Channel: All Revit API Forum posts
Browsing all 67020 articles
Browse latest View live

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 Article


Re: 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 Article


Image may be NSFW.
Clik here to view.

Re: Extract Fabrication Parts Connectors Values

Thanks Mathew. It doesn't Help. But i just got this by using "FabricationConfiguration & FabricationConfigurationGetInfo" Method. 

View Article

Re: 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 Article

Changing 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 Article


Re: 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 Article

Re: 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 Article

Re: 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 Article


Re: 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 Article


Re: 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 Article

Re: 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 Article

Re: 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 Article

How 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 Article


Re: 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 Article

Re: How to filter for Drafting Views of a particular Type

 Dear michael, try this. FilteredElementCollector SectionCollector = new...

View Article


Re: 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 Article

Re: 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 Article


Image may be NSFW.
Clik here to view.

ExtrusionRoof 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 Article

Re: 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 Article

Simple Cut Section

Hi, I have a preselectd room now how do I programatically cut a section for the room. Thanks & RegardsSanjay Pandey

View Article
Browsing all 67020 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>