nutace - Thanks for the response.
Yeah - I looked through the help files. The ownership section is really vague. I tried a colon in place of the . and the error persists.
You mentioned that you typically change ownership after the import... how are you avoiding this? I am being forced to...
Screen capture of current ownership format attached... whats missing or needs to change?
Matt Smith, Principal Designer
(o) 937.456.8728
1219 US 35 West P.O. Box 60
Eaton, OH 45320
msmith@hennypenny.com |...
Hello,
I am struggling to get a downloaded Destaco clamp imported into our Teamcenter installation. I am attempting to use the import assembly into TC command and navigating the various options that are available within it. My failure mode is related to default user/group. What is the format...
Most of the existing files will already have these expression links completed.
- Is your answer different for a new file?
- Is it possible to modify the template/s (Drawing, Sheet) note instance/s to some specific name that wont randomize?
P.S. the Unobtainium reference made me LOL.
Matt...
TAH DAH... COWSKI = Genious!
Thank you sir :)
Last part of the puzzle...
- How do I overcome the annotation name changing from file to file?
Matt Smith, Principal Designer
(o) 937.456.8728
1219 US 35 West P.O. Box 60
Eaton, OH 45320
msmith@hennypenny.com | www.hennypenny.com
150013/011 = Model file.
Yes - HP_Material is present.
We are linking from the drawing spec text to the model file expressions that drive the sheet metal features.
If I edit drawing spec text manually to this...
<X0.2@"150013/012"::HP_Material>
I get the result that I am after.
I think we are...
modified double quotes, runs without error, no text modification - DOOHHH!.
msg box returns...
text2(0) = <X0.2@150013/011::HP_Material>
working code line looks like this
text2(0) = "<X0.2@""150013/011""::HP_Material>"
What to do?
Thanks.
Matt Smith, Principal Designer
(o) 937.456.8728
1219...
moudy1
I did this
Dim text8(0) As String
text8(0) = "<X0.3@"" & curentFile & ""::Sheet_Metal_Bend_Radius>"
draftingNoteBuilder4.Text.TextBlock.SetText(text8)
MsgBox(" text8(0) =" & text8(0))
Not sure if I entered the message code correctly but the attached image is the result.
Matt Smith...
Good morning,
I updated my line entries for "current file".
Code runs without error but does not modify text?
cowski - How do I check the value of currentFile?
Thanks for all the help.
Matt Smith, Principal Designer
(o) 937.456.8728
1219 US 35 West P.O. Box 60
Eaton, OH 45320...
moudy1
Tile block text value is the default from template part if creating from scratch. Save as would present the text value from the parent part.
Expression name is common for all sheet metal parts.
I have attached a sample drawing.prt and its associated model.prt.
I hope this helps...
moudy1
No dice... the proposed code change from my earlier post runs without error, but does not modify the targeted text (or any text)? IDK why??
Matt Smith, Principal Designer
(o) 937.456.8728
1219 US 35 West P.O. Box 60
Eaton, OH 45320
msmith@hennypenny.com | www.hennypenny.com
Ok... that gets me past that error, now Im assuming I replace the line items containing the specific part/rev I used when creating this journal with your introduced variable ?? of currentFile? Like this...
text8(0) = "<X0.3@""93638/A""::Sheet_Metal_Bend_Radius>"
becomes...
text8(0) =...
cowski -
I saved the code you supplied into an independent journal,
Ran it against a couple of files and I keep getting these errors... (screen shot attached)
Line 16: Name 'workPart' is not declared
Line 17: Name 'workPart' is not declared
Im sure I have done something incorrectly, can you...
Moudy1 -
Code errors out at line 24 (as you guessed).
Unfortunately the primitive code I posted is = to my know how on the subject...
Turn on the journal/macro recording
Click through your command progression
Stop the journal
Play back the journal and cross your fingers.
Specifically the actions...