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

Errors with Python script to copy and rename grids from linked file #1360

Closed
salvodragotta opened this issue Oct 21, 2016 · 2 comments
Closed

Comments

@salvodragotta
Copy link

If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.

Dynamo version

Dynamo Core 1.2.0.2831
Dynamo Revit 1.2.0.2654

Revit version

Revit 2016

Operating system

Windows 10

What did you do?

Python script to copy and rename grids from linked file.

Refer to the following post in the Dynamo Forum

https://forum.dynamobim.com/t/copy-grids-from-linked-model/6913/4

What did you expect to see?

grids created and renamed.

What did you see instead?

AttributeError: 'type' object has no attribute 'Create'
AttributeError: can't assign to read-only property Name of ype 'Grid'

Someone else has tested it in the RevitPythonShell and it works.

@mjkkirschner
Copy link
Member

you've imported both the revitapi and our wrappers which include a grid type:

public class Grid : Element

you need to be specific about what type you are referring to. You are probably referring to ours which does not have a Create method. Use the full module name.

@ksobon
Copy link
Contributor

ksobon commented May 29, 2017

Looks like @dimven solved this in the Forum. Can we close? cc: @kronz

@kronz kronz closed this as completed May 30, 2017
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

4 participants