Problems with the Basic Revit Add ins Functions and Tutorials

Problems with the Basic Revit Add ins Functions and Tutorials

Anonymous
Not applicable
387 Views
1 Reply
Message 1 of 2

Problems with the Basic Revit Add ins Functions and Tutorials

Anonymous
Not applicable

Hi all,

 

This morning I've been working on the Revit Add ins of the changing of colors. However, I've compiled it but had problems to use it in Revit. (Can't change the color of elements)

 

Therefore, I tried to go back into the tutorial provided here which I managed to do it beforehttps://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/lesso...

 

In the tutorial itself, it taught us to "Copy and Paste" and I managed to do it earlier on.

 

However, After I failed to run my Revit Add Ins of the changing of colors, I tried to go back into this tutorial to run exactly the same steps and same codes. It managed to "extent" into Revit but when I wanna use the add in function (which is Copy and Paste action) by clicking the function name under the External Tools, it can only select the group of the element but no option for me to place the group of element, which means can't paste the element that I selected.

 

I had tried numerous times doing the exactly same steps that shown in the Revit Add Ins tutorial (which I managed to do it before) and reinstall the Visual Studio, but still I didn't manage to "Paste" the elements.

 

Previously, It was perfectly fine to copy and paste the elements using the Add Ins function shown in the tutorial, but after this morning trying to create a new Add Ins function, the previous Add Ins function failed to use until now even numerous of trial.

 

Do any of you roughly know what's the possible flaws within it and the possible error that I could have made during any steps? I would be really happy to see your comments and advice.

 

Please kindly help!!

 

FYI, I'm working on Visual Studio 2019 and Revit 2018.

0 Likes
388 Views
1 Reply
Reply (1)
Message 2 of 2

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

Does your code have this line?

XYZ point = sel.PickPoint("Please pick a point to place group");

If yes then your code should work fine (i.e)your code should ask you to pick a point to place the object.

 

Since you are able to see the addin under external tool button I think there is no problem with your addin but make sure you have mentioned proper .dll file path and class name in the addin file.

 

My suggestion is to try to type the code in your visual studio instead of copying and pasting the code from the Revit  website to your visual studio window.

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes