Author Topic: Macros in revit, what language?  (Read 1433 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Swamp Rat
  • Posts: 507
  • Revit MEP 2016 Acad2013, OPEN DCL
Macros in revit, what language?
« on: September 01, 2016, 08:47:50 AM »
Hello there,
i need to automate stuff in Revit MEP. i was used to program in vlisp for ACad so what is the weapon of choice for you experts here? C#, VB.net Ruby or Python?

thanks,

Bernd
Bernd

rvhwlc

  • Newt
  • Posts: 172
Re: Macros in revit, what language?
« Reply #1 on: September 01, 2016, 09:41:02 AM »

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Macros in revit, what language?
« Reply #2 on: September 01, 2016, 09:47:12 AM »
I guess it depends on what you're trying to do. VB.net is probably the easiest to learn. Dynamo is pretty good, too.

What ARE you trying to do? Maybe there's something already coded for you that you can tweak.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

hugha

  • Newt
  • Posts: 103
Re: Macros in revit, what language?
« Reply #3 on: September 01, 2016, 01:19:02 PM »
C# is mainstream.

Python also has admirers and Dynamo is ... fascinating.

Whatever your preferences you will gain much by visiting Jeremy Tammik's Revit API blog at http://thebuildingcoder.typepad.com/ to get a leg up.  The  SDK examples are also well worth exploring as is the API docco itself.

Good luck.


Amsterdammed

  • Swamp Rat
  • Posts: 507
  • Revit MEP 2016 Acad2013, OPEN DCL
Re: Macros in revit, what language?
« Reply #4 on: September 02, 2016, 07:42:13 AM »
What i  am trying to do is : a lot. my new job is in native mep (they worked with verticals before and now reinvent the wheel) and i come form acad with a pretty good 3d vertical and self made shop drawing lisps.

a simple example, when i connect  two pipes in a t-junction i now need manually set the type of pipe to either t or tap depending  on whether the 2 diameters are  the same or not, this should be decided by a program imo.

or i had a bunch of repetitive scenarios like placing thermometer assembles, of vent pipes like seen in that link here

https://www.dropbox.com/s/pluuszhjbt14clh/PREFAB%20STANDARDS-DEF.wmv?dl=0

or even worse, when i place a pipe a pipe accessory that needs a flange i need to manually place the flange later, the flanges are PA too in that system because as Pipe fitting in the routing preference the revit would place the flange at very joint.

and a lot more...


Bernd