I am working on creating a wall opening using a linked MEP file and have come across some scripts developed by others. I would appreciate any guidance or assistance on how to further develop this process.
The error I am getting is:
LinkElement.GetParameterValueByName operation failed.
unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
Parameter name: unitTypeId
Several considerations come to mind. While I am uncertain if this is the underlying issue, I have reviewed and verified these items.
- Case Sensitive parameters
- If the parameters exist in the elements
- The units use in length is mm
Thank you, I will try this
It took long to reply. I have made a progress in the script.
The problem I encounter is that after I have created the 1st wall opening, it resets to nothing when I tried to create the 2nd wall opening.
I also research some information on my end, but does Transaction Node (start, end) a solution for this?
Someone also suggested that this is potentially element bindings. I am still in the process of reviewing information regarding this matter.
Hi again,
It’s hard to say because your image doesn’t show the titles of nodes. But you’re probably right about element bindings. If you process openings one by one, with re-selecting elements, it’s definetely more preferred to use Dynamo player to run such a script. Otherwise, you will need to close script and open it again after you processed one opening
2 Likes
yeah 100 % Element binding and run from player could work, another way is spring ꟿ FamilyInstance.ByHostAndPoint and set the python as here…
1 Like
Hi Andriy,
You are correct; that is the current output of the script. However, even Dynamo Player does not operate correctly with the script.
I know I’ve done something wrong somewhere in the script. Still trying to improve it.
Thank you for your insights.
Dear Sovitek,
I will proceed with testing the spring node and will attempt to create the Python script. As I am still a beginner in Dynamo, I know that I may encounter some errors along the way. Will update soon.
Thank you for your guidance.
1 Like
If you don’t clear the bindings from the graph they will persist in player as well. Read this topic and check out the AU session linked from it for more info: Element Binding.
1 Like