Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

code conversion from c# to vb.net

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
623 Views, 2 Replies

code conversion from c# to vb.net

foreach( Element e in collector )
  {
    ImportInstance inst = e as ImportInstance;
 
    if( inst != null )
    {
      // Get the Solid from ImportInstance
 
      GeometryElement geomElem
        = inst.get_Geometry( opt );
 
 pleases tell,how can i write these lines in vb.net,i am a beginner in vb.net

2 REPLIES 2
Message 2 of 3
jeremytammik
in reply to: Anonymous

  • Open the Revit macro SharpDevelop IDE
  • Enter the original C# code
  • Click on the menu item 'translate'
  • You can also translate to Python

 

Here is a more detailed description and other more detailed information:

 

 

By the way, I would not recommend starting to learn VB.NET in this day and age:

 

  

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3
Anonymous
in reply to: jeremytammik

thank you very much sir 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report