Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

transition Diameter-read only

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
MarryTookMyCoffe
1007 Views, 6 Replies

transition Diameter-read only

in pipe transition, parameters for Diameter is Read Only, any one know how to walk around this?
I thing I can do small pipes on both site, but I would like to avoid this.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
6 REPLIES 6
Message 2 of 7

it is controlled via the BIM by other properties, possibly on other elements.

 

the entire pipe system section shares one single diameter.

 

how do you control it via the user interface?

 

that is always the question you need to ask yourself first of all.

 

play with the user interface to modify the diameter of pipe system sections and explore the results in RevitLookup.

 

that will tell you all.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 7

I expected nothing and i'm still disappointed...


Every other fitting work with connectors in the same way except a Transition, which block parameters assigned to a connector.
I DID LOOK UP THIS IN UI, that's why Im asking for "work around ".

 

Why The Transition blocks Parameter when non other fitting do this?

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 4 of 7

Hi,

 

afaik, you can use dummy pipes for creating transitions.

 

  1. Create two pipes of the desired diameters somewhere outside all other elements.
  2. Connect them by doc.NewTransitionFitting.
  3. Delete the dummy pipes.
  4. The remaining transition FamilyInstance will still have the correct diameter parameter values.
  5. Move it to the desired location.

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 7

it is painful that this is the only way

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 6 of 7

Hi,

 

yes, painful as often.

 

Think of a dentist who wants to extract a tooth.

 

Normal way is:

 

  • open mouth
  • grab tooth
  • pull tooth

 

Revit API way is:

 

  • cannot open mouth exception
  • develop new extraction device to access oral cavity via ear
  • develop new optical device (want to see the extraction process), insert into ear number two
  • pull tooth

Sometimes, also ear cannot be used, so you are forced to find another body opening.

Dirty workarounds...

 

 

Revitalizer

 




Rudolf Honke
Software Developer
Mensch und Maschine





Message 7 of 7

so I figure out how to avoid this mess with transition. I decide that i'm just going to ignore transition from api side and use  Union(with two connectors assigned to a different parameters) and dump them in the very end of union list in PipeType, that way user schould never came across them.

Oh and I discover something irritating in process, that I wish I knew moth before. We can assigned parameters to description even if connector in family is fitting type. They didn't turn it off, they just made it invisible. My code would be so much simpler.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report