Our DevBlog for Cloud and Mobile technologies with a strong emphasis on the Autodesk Forge APIs. Our DevBlog for AutoCAD and other platform technology APIs. Our DevBlog for Revit, Navisworks, AEC and BIM technology APIs. Please enable JavaScript if you would like to comment on this blog. LEADER_ARROWHEAD)Īfter executing this code, in which for simplicity sake, we are just setting the first extracted arrowhead to the tag – we can see that the leader had a arrowhead set to it. TagSymbol.get_Parameter( BuiltInParameter. Symbol with one of the arrowheads that was filtered Set the LEADER_ARROWHEAD parameter of the Access the Symbol of the IndependentTag elementĭoc.GetElement(tag.GetTypeId()) as FamilySymbol IndependentTag tag = selectedElement as IndependentTag Using ( Transaction trans = new Transaction (doc, "Arrowhead" )) New FilterStringRule (provider, evaluator, "Arrowhead", false ) are of ElementType and have the ALL_MODEL_FAMILY_NAMEīuiltInParameter. This is being done by filtering all elements which Access all elements in the model which represent Arrowheads UIApplication uiApp = commandData.Application ĭocument doc = Public Result Execute( ExternalCommandData commandData, The following code snippet illustrates this approach for the Structural Column Tag instance shown in the screenshot above. Once we have access to the Arrowhead element that we wish to use, you can set the ID of the Arrowhead element to the LEADER_ARROWHEAD built-in parameter. This can be done by filtering for elements which are of ElementType and which have the built-in parameter called ALL_MODEL_FAMILY_NAME set to the value 'Arrowhead'. Now the value that we wish to set for this type parameter can be obtained by filtering for the Arrowheads that are available in the model/template. Here is an example showing list of arrowheads available in a structural template for a Structural Column Tag instance. This parameter is what needs to be set in order to set the arrow head for the tag. ![]() And so when we access the Family Symbol of the Structural Framing Tag, we will be able to access the Built-in Parameter called LEADER_ARROWHEAD. The Leader Arrowhead parameter is, in fact, part of the Structural Framing Tag's Symbol object. How can we use the Revit API to set the leader arrowhead. ![]() When a Structural Framing Tag is placed as an instance, by default, it does not have the Leader Arrowhead set.
0 Comments
Leave a Reply. |