ilogic, part, IDW, Symbol, save

ilogic, part, IDW, Symbol, save

jletcher
Advisor Advisor
719 Views
9 Replies
Message 1 of 10

ilogic, part, IDW, Symbol, save

jletcher
Advisor
Advisor

I have searched the post and found some things about this but seems none match what I am trying to do.

 

I have a part that I have it being controled with ilogic basicly a pipe spacer the part number is generated by ilogic with drop down selection the user will use. after they hit apply the part is made and inserted into the active file location.

 

This is what I would like to do not sure if it can be done I have looked into the API to see what I can come up with. I have a few snippits I have tried and seem not to get it to work but that is me. I still need to sit down and study this ilogic..

 

But what I want is after I make the part and hit aplpy I would like a drawing to be made at the same time. Attached are some screen shots of the symbol before part insert and after to help.

 

Make the part then drawing is made, symbol inserted in right location and the part is inserted the part does not have to show in the drawing I only need the information it has . So the part can be scaled down to .001 and placed in a small corner of the drawing. then the drawing to be saved in the active file.

 

Screen shots:

Symbol pipe.JPG

 

Symbol pipe w-info.JPG

 

Thanks in advance....

 

 

 

 

 

 

0 Likes
720 Views
9 Replies
Replies (9)
Message 2 of 10

mrattray
Advisor
Advisor
Message 3 of 10

jletcher
Advisor
Advisor

I thoght I seen them all but seem to miss this one I will give it a shot.

 

 Thanks

0 Likes
Message 4 of 10

jletcher
Advisor
Advisor

That helped out a bunch thank you.

 

I am having one issue that is when it saes the file I want it to be placed in the directory the part is places so I thought I would just add the same code

 

oDrawDoc.SaveAs(opath & "\" & "625A6-" & Mat_Code & Thread_Code & Length_All_Thread & Foot_Code & ".idw" , False)

 But it seems not to work any clues?

 

0 Likes
Message 5 of 10

mrattray
Advisor
Advisor
It should work. What does it do? (or not do?)
Do you have any illegal characters coming through those variables?
Mike (not Matt) Rattray

0 Likes
Message 6 of 10

jletcher
Advisor
Advisor

It does all but when it gets to the save line it stops and gives me this

 

e1.JPG

 

e2.JPG

 

I don't know why it says assembly it is just a ipt.

Thanks

0 Likes
Message 7 of 10

jletcher
Advisor
Advisor

I just figured it out.

 

 I forgot to add

 

 

path=ThisDoc.WorkspacePath()

 And I changed it to just path

0 Likes
Message 8 of 10

mrattray
Advisor
Advisor
It always says that. Try running this: MsgBox(opath & "\" & "625A6-" & Mat_Code & Thread_Code & Length_All_Thread & Foot_Code & ".idw")
Mike (not Matt) Rattray

0 Likes
Message 9 of 10

mrattray
Advisor
Advisor
Sometimes it's the silliest things, isn't it?
Mike (not Matt) Rattray

0 Likes
Message 10 of 10

jletcher
Advisor
Advisor

Yes it is.

 

 

Now to figure the rest out LOL..

 

I may just set up a template for each one I have. Instead of trying to figure out the insert part for the sketch symbol. But hen again need to learn..

 

Might just do it temporary till I figure it out because what I have found so far there may not be a way too.

0 Likes