(API) Models Comparison 1.0

(API) Models Comparison 1.0

StefanoPasquini6790
Advisor Advisor
2,682 Views
11 Replies
Message 1 of 12

(API) Models Comparison 1.0

StefanoPasquini6790
Advisor
Advisor

Hi everyone,

 

I've just published another tool for all the Robot Users.

 

You can download for free the API here: http://www.pasquiniprogetti.it/?p=934

 

Let me know your feedback.

 

Cheers


PasProStudio

www.pasquiniprogetti.eu

Structural + Detailing engineers
Accepted solutions (2)
2,683 Views
11 Replies
Replies (11)
Message 2 of 12

Rafal.Gaweda
Autodesk Support
Autodesk Support
Cool
I will add it to our list.


Rafal Gaweda
Message 3 of 12

Rafacascudo
Mentor
Mentor
Accepted solution

Bravo Stefano!! seems to be a great toll!

thx!

Rafael Medeiros
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 4 of 12

Anonymous
Not applicable

Can you please explain it in English.

Thank you.

It is great job & coding.

0 Likes
Message 5 of 12

StefanoPasquini6790
Advisor
Advisor
Just select the english flag on screen. You can find it also in french, deutch, spanish and portoguese.

Cheers

PasProStudio

www.pasquiniprogetti.eu

Structural + Detailing engineers
0 Likes
Message 6 of 12

rokas_varanauskas
Advocate
Advocate

does this work with 2024 version? I've tried it with several models and I only get macro errors if I click to get model data

rokas_varanauskas_0-1738072520964.png

 

0 Likes
Message 7 of 12

Stephane.kapetanovic
Mentor
Mentor

hi @rokas_varanauskas 

Some variable types don't appear to be defined. These are minor changes. Please reach out to the author on their website for an update.

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes
Message 8 of 12

StefanoPasquini6790
Advisor
Advisor

Good Morning,

 

Probably you've changed you excel installation (version or machine).

 

Well, to solve your issue you have to add Robot Kernel Object Model in the excel VBA Reference.

 

To do this you have to:

  1. Open the Excel Spreadsheet;
  2. Press Alt+F11
  3. In "tools" click on "Reference" StefanoPasquini6790_0-1738136158342.png

     

  4. Then Remove (uncheck) the current Robot Kernel Object Model (That is the old one) and search for Robot Kernel Object Model ver 25.0 (That is the current one) and check it, than click on the "OK" button and the API will work again.

StefanoPasquini6790_1-1738136321405.png

 

have a nice work, I hope my spreadsheet speed up your workflow


PasProStudio

www.pasquiniprogetti.eu

Structural + Detailing engineers
Message 9 of 12

rokas_varanauskas
Advocate
Advocate
Accepted solution

Thanks Stefano! it was indeed missing Reference to Robot Kernel object. For some reason it was looking for ver. 16 but unticking it and then ticking ver.25 as suggested did the trick and macro works again. Thank you for your support. 

Message 10 of 12

rokas_varanauskas
Advocate
Advocate

So after running comparison between two model revisions with some time apart I found one issue which I haven't got the solution for. 

The issue:

Since all data rows are rows are ordered by ID column and followed by BAR NUMBER AND CROSS SECTION, comparison part does not always work correctly if new bars are added or removed as in my example:

rokas_varanauskas_0-1738144941708.png

as shown above, macro reports 310 different bars, however true change should be around 12 (6 No bars deleted, and 6No bars changed cross section size). 

This is due to direct row comparison starting from ID 

rokas_varanauskas_1-1738145336033.png

I understand that this is more complicated than just doing comparison check within the same data row. 
If I will come up with a solution to above, I will post revised code here. 

0 Likes
Message 11 of 12

StefanoPasquini6790
Advisor
Advisor

Unfortunately the API works only for identical models, I mean that the two models need to be with the same bar number for EACH element.

 

You can try to change the comparison criteria in the VBA script

 

Good luck


PasProStudio

www.pasquiniprogetti.eu

Structural + Detailing engineers
0 Likes
Message 12 of 12

rokas_varanauskas
Advocate
Advocate

attached if a modified VBA code which list cross section sizes side by side and column P check if sections sizes are the same. Apologies for butchering your VBA but someone may find this also useful. 

0 Likes