CreateFamilyInstance! Cannot create a simple column in Dynamo 2023

Hi all, although this exact topic was solved back in October last year, I couldn’t use the answer mentioned there, I posted again there, but I had no answer. I assume it’s because it was long ago. Anyways, this is the problem:

I’m using this code “CreateFamilyIstance” to create a simple column in XYZ(0,0,0). In the previous solved topic, they mentioned that you can change python engine to Python 2 or so, but in my case I don’t have that option.

Even if I could have the possibility of changing the engine, or use dynamo nodes, I’d rather not to do it. Mainly because this is not a code only for me, it’s for my company and many of them don’t know how to use Dynamo Player, and they don’t know how to change the engine in case that they need it. So I will create a tool tab for revit so they just need to click on the button (once the entire code is finished)

I assume there must be a way to do it only with python in Revit 2023. Thanks

chatGPT didn’t help because its training data base comes until 2021 only.

Thank you

Hi @rafaelPD66Z ,

To use IronPython2.7 you’ll have to install the DynamoIronPython2.7 Package from the Package Manager. It has around 46k downloads at the moment.

Besides, if you don’t want to use Dynamo nodes (which is probably easier to make/manage) but only use Python, why use Dynamo at all? Wouldn’t pyRevit or something similar be a better alternative then?

Doesn’t really ever help with Dynamo or Revit API stuff. You need to learn both of those for it to be of use, and even then a colleague who also knows it is 1000x more helpful. :slight_smile:

Thanks @Daan . The idea of using dynamo is for checking if the script is doing what I need it to do. Of course this is not the script I’m doing, it is just part of it. I just isolated the problem to be easier to understand.

I’m using PyRevit in deed. So, if I use files *.py instead of *.dyn no need to worry about dynamo version?