Fabrication Material Guageid question

Fabrication Material Guageid question

nathan.chapman
Collaborator Collaborator
337 Views
2 Replies
Message 1 of 3

Fabrication Material Guageid question

nathan.chapman
Collaborator
Collaborator

I was messing around with the API and fabrication parts and was looking at the Revit 2017 API document.  I was looking to pull the material thickness but the document shows this below.

API.PNG

I have the MaterialId but dont know how to get the guageId and dont see anything in the document.  Any help would be appreciated.

 

 

Nathan Chapman
Production Manager at General Heating and Air Conditioning

Revit Architecture Certified Professional
Revit MEP Mechanical Certified Professional
Revit MEP Electrical Certified Professional
DynaFabrication Package Author

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDOS button.
0 Likes
338 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Nathan,

 

Thank you for your query.

 

For future reference, the following text will be much more useful for search purposes than the screen snapshot that you provided:

 

FabricationConfiguration.GetMaterialThickness Method

 

 

  C#
  public double GetMaterialThickness(
    int materialId,
    int gaugeId
  )

 

Avoiding spelling mistakes in your query, especially in the subject line, also helps significantly to find them in future.

 

Now to address your question:

 

One of the first places to look when asking a question like yours is the collection of samples provided by the Revit SDK.

 

You can search it globally by opening the SDKSamples solution in Visual Studio.

 

I searched it for GetMaterialThickness with no luck, but the use of the FabricationConfiguration class is demonstrates quite thoroughly by the FabricationPartLayout sample.

 

Navigating via that to the FabricationConfiguration.cs metadata, I note that the comments on GetMaterialThickness state that gaugeId is the "gauge identifier within the specified material".

 

I assume that you looked exhaustively "within the specified material" returned by the FabricationConfiguration class, so I am passing on your query to the development team for clarification.

 

Best regards,

 

Jeremy



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

Message 3 of 3

nathan.chapman
Collaborator
Collaborator
Thanks for the reply Jeremy. Sorry sbout the subject line.
Yes, I've looked through as much as I can in the FabricationConfiguration class on material gauge but couldn't find anything. Even looked at your great tool Snoop with nothing on GaugeId. I could get the GaugeId pulling the material thickness from the fabricationpart but it will only give me the id of the assigned material/gauge being assigned by the specification. I would like to get all gauge thickness' associated with a material from the FabricationConfiguration. Again thanks for your help!

Nate
Nathan Chapman
Production Manager at General Heating and Air Conditioning

Revit Architecture Certified Professional
Revit MEP Mechanical Certified Professional
Revit MEP Electrical Certified Professional
DynaFabrication Package Author

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDOS button.
0 Likes