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

Re: How to retrieve a Dimension's (segment) geometry ?

Wouldn't it be safer to use the dim.View instead of doc.ActiveView?

View Article


Re: viewport position

thx... but then I get a Line. How can I apply back size and position of this line to  underline of the viewport?  

View Article


Re: How to retrieve a Dimension's (segment) geometry ?

 i tested your code with a dimension spanning a sequence of three parallel walls. running it, i see the following: `el` is a wall.`obj` is a valid geometry object, but neither a line nor a face, so the...

View Article

Re: Wall Top Constraint Before Creation

I believe this method would limit me to rectangular walls which I would like to avoid. Please correct me if I'm wrong. More info: I don't have the issue if I use the default architecture template but I...

View Article

Re: delete a type created in a family (RFA) file

Hi Jeremy, Here is the code I use for finding a type and try to delete it. Only find one element. Please help to review then giving me advise. Element tmp_ele = Helper.FindFamilyType(doc,...

View Article


Re: Can I use Window instead of Page when making my dialog dockable?

Okay. Thanks. I'll use UserControl then.

View Article

Re: delete a type created in a family (RFA) file

this came up when I try to add a new type FamilyType type1 = pFamilyMgr.NewType(name); If there is a type with given name exist, it popup a failed message. So I have to delete the old one first. But...

View Article

Re: delete a type created in a family (RFA) file

Yes, exactly.

View Article


Re: delete a type created in a family (RFA) file

Hi Jeremy, Please disregard my previous question. I make it. Thank you for supporting. Best Regards, Nam.

View Article


Re: delete a type created in a family (RFA) file

Hi Jeremy, Sorry, It does not work completely. After run my command, all types of the family is removed from Project Browser Pane. I right click on the family to edit.Then opening the Family Types...

View Article

Image may be NSFW.
Clik here to view.

Faces of cutter Family ?

Hi, I have create a cutter family and place in beam :Now, I want get to the faces of this element. But when I try, I don't found...I explore with Revit Lookup and the result is same...  How find the...

View Article

Image may be NSFW.
Clik here to view.

Re: viewport position

The resulting Line is a "clone" of the ExtensionLine 

View Article

Re: Setting CropBox for a 3D view with Revit 2018

Hi Jeremy,Is difficult to put a revenue implication. It affects a key function in our software, and so I have had to disable this option and in the release notes will need to suggest that people remain...

View Article


Image may be NSFW.
Clik here to view.

Re: How to retrieve a Dimension's (segment) geometry ?

 thank you! i implemented it in  https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/CmdGetDimensionPoints.cs The entire code is:  List<XYZ>...

View Article

Re: Setting CropBox for a 3D view with Revit 2018

Dear Peter,Thank you for your update and business case. I added them to the issue REVIT-115510 [different result setting CropBox for a 3D view with Revit 2018 -- 13049014] to make the development team...

View Article


Re: How to retrieve a Dimension's (segment) geometry ?

the arbitrary point is the point pt1 in GetDimensionPoints I suggestList<XYZ> GetDimensionPoints( Dimension dim ) { Line dimLine = dim.Curve as Line; if( dimLine == null ) return null;...

View Article

Adding contextual buttons to the ribbon

Hey, I'm slowly getting up to speed with using the API and writing add-ins for Revit. I'd like to be able to add contextual buttons to the ribbon - is this possible? (I already know how to add tabs,...

View Article


Image may be NSFW.
Clik here to view.

Re: How to retrieve a Dimension's (segment) geometry ?

Not quite... with the current code, plus an additional method DrawMarker to add model lines marking the 'start point and the three 'further points', I currently get the following result:  

View Article

Re: How to retrieve a Dimension's (segment) geometry ?

as you can see, is the first Mark positioned on the MidPoint of the first segment.We still have to adjust the GetDimensionStartPoint() method: XYZ p = null; double length=0; XYZ direction =(dim.Curve...

View Article

Image may be NSFW.
Clik here to view.

Re: How to retrieve a Dimension's (segment) geometry ?

Yes indeed. It works now: 

View Article
Browsing all 67020 articles
Browse latest View live