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

How to make my own stubs? #10

Open
AlekseiBalyshev opened this issue Mar 26, 2018 · 4 comments
Open

How to make my own stubs? #10

AlekseiBalyshev opened this issue Mar 26, 2018 · 4 comments

Comments

@AlekseiBalyshev
Copy link

Hello, could you please describe how to make my own stubs?
I'd like to add Autodesk Navisworks, AutoCAD, Civil3D and a couple of other dll's. I use VS Code.

@gtalarico
Copy link
Owner

Give it shot with one of these you listed and we can go from there.

  1. Clone this repository

  2. Edit the PATH variable in default_settings.py to include the location of the DLL you want to create a stub for.

  3. From the root directory in this repository, run:
    ipy -m ironstubs make NameOfDllWithoutExtension
    (eg. ipy -m ironstubs make RevitAPIUI)

Let me know if that works

@mitevpi
Copy link

mitevpi commented Apr 27, 2018

I gave it a shot with a custom class library, but got this error:

image

Is there something I need to do in my class library to be able to generate stubs, or is the stub generator just not made for custom code.

@gtalarico
Copy link
Owner

gtalarico commented Apr 28, 2018

It should work for most dlls, but some have quirks. The main revit dlls for example only run inside of revit.

The error you are getting above has to do with ironpython frames.
Try running
ipy - X:FullFrames -m...

@gtalarico
Copy link
Owner

is it alright to delete my comment?
Sure, feel free to delete it

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

No branches or pull requests

3 participants