OPENING DRAWING DIRECTLY FROM MODEL - MODEL & DRG NAME PLUS LOCATION DIFFERENT

OPENING DRAWING DIRECTLY FROM MODEL - MODEL & DRG NAME PLUS LOCATION DIFFERENT

sguan1212
Enthusiast Enthusiast
3,290 Views
46 Replies
Message 1 of 47

OPENING DRAWING DIRECTLY FROM MODEL - MODEL & DRG NAME PLUS LOCATION DIFFERENT

sguan1212
Enthusiast
Enthusiast

I found this query on an old post that are UNSOLVED. Time has change, revisitation is merited.

 

All the companies I've work for, both model name & drawing name are always different & saved in 2 different sub-folders under the same project folder. Therefore i've never had the luxury to use OPEN DRAWING command from the model. (Understanding that the model name & drawing name needs to be the same and in common location to work).

 

Has anyone workout a way get around this?

This problem has been bugging me for years. Any help would be appreciated.

Regards,

Sean

 

0 Likes
Accepted solutions (1)
3,291 Views
46 Replies
Replies (46)
Message 41 of 47

sguan1212
Enthusiast
Enthusiast

Hi Marcin,

The rule seems to be working okay. But...

When I do the initial save of the drawing, the model closes by itself.

Same for the assembly model when the drawing is saved the 1st time.

I would like to keep the models open until they are wanted to be closed

0 Likes
Message 42 of 47

marcin_otręba
Advisor
Advisor
Accepted solution

So remove doc.close(True) statements then..

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 43 of 47

sguan1212
Enthusiast
Enthusiast

Hey Marcin,

I think we got somewhere with this one.

I removed the line like you said. There are 2 of them. I deleted the bottom one, still the same, then went ahead and deleted the top one as well. Run another test, and everything worked perfectly.

 

However, before I jump ahead of myself, I will do another larger scale test to make sure everything is stable.

I really appreciate your help, and all the other guys involved.

Let me come back to you soon

0 Likes
Message 44 of 47

sguan1212
Enthusiast
Enthusiast

Hi Marcin,

I have successfully done another test without encountering any issues. However, I will have this ilogic rule running as trail for a while before we adopt it fully. Despite that, I think it will be okay to state now that we have a win!!!

Thanks again for all your effort. 

I don't know where about on this planet you are. But if you are ever in Melbourne, Australia. I will be glad to shout you a few beers

0 Likes
Message 45 of 47

NachoShaw
Advisor
Advisor

Hey

I made something to combat this a while ago, it worked like this(on a multi sheet drawing):

Run macro in Drawing.

    loop through each sheet

        loop through each drawing view and opens (visible = false) each reference.

            add full drawing path and current sheet number to a custom iproperty

        next

   next

 

added a custom popup form. when i selected a part or assembly, the form would display all of the information (material, appearance, size, drawing and sheet number).

 

If i clicked 'open drawing, it would simply open the drawing from the path saved in the iproperties and then activate the sheet based on the saved number.

 

worked for me 🙂

 

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Message 46 of 47

sguan1212
Enthusiast
Enthusiast

Do you still have a copy of the macro, if you can share this, it can be used as an alternative options.

That way people can find it in 1 place

0 Likes
Message 47 of 47

marcin_otręba
Advisor
Advisor

Sadly i am not even close (only 15 871 km) so maybe next time 🙂

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes