tag:blogger.com,1999:blog-8764109705492068977.post1235873731117095788..comments2023-06-10T05:04:10.688-07:00Comments on Inversion Consulting's CAD/PDM Automation Blog: Pro/WebLink: Changing Model Relations Quickly with Wildfire 4Marc Metteshttp://www.blogger.com/profile/05031210948718948813noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8764109705492068977.post-32508045019244967032009-07-30T20:48:30.175-07:002009-07-30T20:48:30.175-07:00hi,
i want know about how to give relations...hi,<br /> i want know about how to give relations in assembly mode using proe<br />when i am giving the relations in part its not accepting the relations in a assembly if any knows or having tutorials please mail me.sudhahttps://www.blogger.com/profile/00424458737624223659noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-37072593981032242692008-05-29T18:20:00.000-07:002008-05-29T18:20:00.000-07:00Your code is attempting to create relations like t...Your code is attempting to create relations like this (without the =0):<BR/>A<BR/>B<BR/>C<BR/>D<BR/><BR/>These are not valid relations, of course.<BR/><BR/>For testing, instead of using this:<BR/><BR/>Dim i As Integer<BR/>For i = 0 To 9<BR/>rel.Append(Chr(65 + i))<BR/>Next i<BR/><BR/><BR/>Use this and see if it works:<BR/><BR/>rel.Append("abc=123")<BR/>rel.Append("def=456")<BR/>rel.Append("ghi=789")<BR/><BR/><BR/>Send me an email if this is still not working for you.<BR/><BR/>MarcMarc Metteshttps://www.blogger.com/profile/05031210948718948813noreply@blogger.comtag:blogger.com,1999:blog-8764109705492068977.post-39169215004476318492008-05-29T08:34:00.000-07:002008-05-29T08:34:00.000-07:00Hi,I tried to add new relations in a model with Vi...Hi,<BR/><BR/>I tried to add new relations in a model with Visual Basic but I have a problem with the "model.Relations" affectation.<BR/><BR/>Here is my code:<BR/><BR/>''''''''''''''<BR/>Dim rel As pfcls.Cstringseq<BR/>Dim models As pfcls.IpfcModels<BR/>Dim model As pfcls.IpfcModel<BR/><BR/>models = ProE_Session.ListModels<BR/>model = models(0)<BR/>rel = New pfcls.Cstringseq<BR/><BR/>rel = model.Relations<BR/><BR/>'Adding relations as (A=0,B=1,...)<BR/>Dim i As Integer<BR/>For i = 0 To 9<BR/> rel.Append(Chr(65 + i))<BR/>Next i<BR/><BR/>model.Relations = rel<BR/>''''''''''<BR/><BR/>The last line model.Relations = rel gives invalid exeption... Why???<BR/><BR/>Have you got any ideas ???<BR/>Thanks for your help!ZuG'https://www.blogger.com/profile/13213964062826568479noreply@blogger.com