How to Generate Revit API Stubs for python Autocomplete

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 9

  • @tay.0
    @tay.0 5 หลายเดือนก่อน +1

    Thank you EF. I am trying to create stubs for Dynamo Nodes, since I have a complex task in my script that I'd like to use ProtoGeometry, since I am using the pyrevit-stubs-builder.exe commandline utility but it doesn't seem to work generating the stubs content for RevitNodes.dll

    • @ErikFrits
      @ErikFrits  5 หลายเดือนก่อน +1

      Check this GitHub repository that has some Dynamo stubs included as well.
      I believe it's from Revit API 2019, but many things will still work. You can also explore the repo and you will find python files that generate these stubs.
      github.com/gtalarico/ironpython-stubs/tree/master/release/stubs.min

    • @tay.0
      @tay.0 5 หลายเดือนก่อน

      @@ErikFrits thank you, I'll give it a try

  • @nikolaminic5247
    @nikolaminic5247 5 หลายเดือนก่อน +1

    I have a question that is not related to this video, but i hope you can help me. Is there a way to get the size of the schedule placed on the sheet, but after it is filtered by sheet, because it will probably be shorter than original. Bounding box returns size of full schedule. I also tried su commit subtransaction after placing it, but still, it does not work. Thanks in advance

    • @ErikFrits
      @ErikFrits  5 หลายเดือนก่อน

      I haven't tried to check schedule sizes on the sheet but I remember that regular views give you different results if you get CropBox or Outline.
      Maybe you can find something similar for schedules or if you can calculate the width of each column. Then you would be able to sum it up to get your dimensions.
      let me know if you will find a solution to that

  • @AMMEDRIVEROSYUPANQUI
    @AMMEDRIVEROSYUPANQUI 2 หลายเดือนก่อน +1

    Good morning.
    Thanks for the explanation.
    In my case I do not have the "pyrevitlib" folder, how could I generate it...???
    c:\user\Lenny 16\AppData\Roaming\pyRevit-Master\pyrevitlib

    • @ErikFrits
      @ErikFrits  2 หลายเดือนก่อน

      This folder comes with pyRevit when you install it. Ocassionaly it can be found in program files folder.
      Check this link to see possible paths:
      pyrevitlabs.notion.site/Distribution-Model-ada60c78ba04466487f16d248b519ba0

  • @snowwalker8778
    @snowwalker8778 4 หลายเดือนก่อน +1

    Hi Erik, I did the eth-cam.com/video/gbFC5rJArXI/w-d-xo.htmlsi=n2xYOkfUMQM0nR4BHi Erik, I also had the same issue with Revit APi autocomplete but this one works.