Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown using FamilyType.ByFamilyAndName in DesignScript definition #981

Open
ThomasMahon opened this issue May 4, 2016 · 0 comments

Comments

@ThomasMahon
Copy link

ThomasMahon commented May 4, 2016

Dynamo Verison

1.0.0 Revit 2016

Operating system

Win 10

What did you do?

I created a DesignScript definition which converts a string (coming from Excel) to a Family Type.

What did you expect to see?

Return the specified Family Type from the input formatted/processed text

What did you see instead?

When I used the FamilyType.ByFamilyAndName method in DesignScript Dynamo throws an exception and deletes the Family from the project!

See the example image - it shows the same method working using the node. When I process the same data from Excel (although its in the format of "Family A"), I use the String methods to extract the Family Type (i.e. "A") and the same method shown in the image to return the Family - I also TrimWhiteSpace to rule out any rogue spaces. Then the error described above occurs.

using the node

Heres the diagnostics

Object reference not set to an instance of an object.

at Dynamo.UI.Controls.PreviewControl.<>c__DisplayClassc.b__b(AsyncTask m)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant