Retrieve dimensions values from a Fabrication Part

Retrieve dimensions values from a Fabrication Part

novesvalentin
Advocate Advocate
473 Views
1 Reply
Message 1 of 2

Retrieve dimensions values from a Fabrication Part

novesvalentin
Advocate
Advocate

I'm trying to get the value of the dimensions of a Fabrication Part, but I can't find those parameters in Element.Parameters Property.

 

Which property or method are you using to retrieve those parameter

 

 

Fabrication Parts Parameters.JPGParameters Set.JPG

 

Thanks!

If this helped solve your problem please mark it as solution, so other users can get this solutions as well.



Valentin Noves

BIM Manager
www.valentinnoves.com
0 Likes
474 Views
1 Reply
Reply (1)
Message 2 of 2

Revitalizer
Advisor
Advisor

Hi,

 

I've never worked with FabricationParts, but using the methods provided by the class, I would suppose:

 

public static Dictionary<string, double> GetValues(FabricationPart fp)
{
    Dictionary<string, double> dict = new Dictionary<string, double>();

    foreach(FabricationDimensionDefinition fdd in fp.GetDimensions())
    {
        dict.Add(fdd.Name, fp.GetDimensionValue(fdd));
    }

    return dict;
}

 

 

 

I didn't test this.

 

There is also a GetCalculatedDimensionValue() method, that seems to be a Parameter's AsValueString() pendant.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes