Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Relationships tab: Can you create a Relationship via script?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
wendy.salas
437 Views, 2 Replies

Relationships tab: Can you create a Relationship via script?

Hello,

 

I have 2 workspaces that work in tandem. I would like that when I execute the transition 'Submit' in Workspace A:

1) A record is created in WS B

2) A Bi-Directional relationship is created between the Item in WS A and the Item in WS B

 

Is this possible? Any keys on how to implement?

 

Thanks!

2 REPLIES 2
Message 2 of 3

Here is a piece of a script that I wrote for another customer:

 

drawing = change.workflowItems[i].item;
println("Drawing is: " + drawing);
pdf = change.workflowItems[i].item.PDF;
if (pdf===null) {
	//do nothing
	println("nothing to do");
} else {                        
	emnoc.relationships.addRelated(pdf, "Cross-Reference", "Uni-Directional", "Description");
}

emnoc was the object that i added the relationship to.  In this case it was directional.

 

Message 3 of 3

Thanks so much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report