Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66694

Re: Moving from UnitType/ParameterType to ForgeTypeId problem

$
0
0

Yes you could reduce the risk of typos by reducing the string input required.

 

Now seeing that all SpecTypes are in the Autodesk.Revit.DB.SpecTypeId  class, that part of the path could be omitted. So in most cases you would just be using a one word string such as 'Length' for other nested types it reduces to something like 'Int.Integer'.

 

I think long term you need to switch. I was interested to understand why you are using attributes  and an enum to store these things rather than just a class structure say with static properties for each parameter etc? Seems harder to get the information out of the attribute than need be.

 

 


Viewing all articles
Browse latest Browse all 66694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>