Fill Color Change in VTL

Uploaded report templates and discussions about reports.

Moderators: sarawut_w, Moderators

Fill Color Change in VTL

Postby david.williams@g2-ops.com » Wed Apr 25, 2018 1:18 pm

I'm trying to trying to do what I feel like is a basic function and that is change the fill color of a part property in VTL.

Ultimately I would like the report to display the image of an IBD then grab a selected part property change the fill color and display the new IBD image. This way the part property is essentially highlighted on the image. I can not seem to access the symbol properties through VTL. Any suggestions? Sample code to what I've tried is posted below.

#foreach ($diagram in $Diagram)
$diagram.image
#set($parts = $report.getDiagramElements($diagram))
#foreach($part in $parts)
#if($part.name ==”partproperty”)
#set($part.symbol.fillColor=[0,0,0])
#break
#end#end
$diagram.image
#end
david.williams@g2-ops.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Wed Apr 25, 2018 1:12 pm

Re: Fill Color Change in VTL

Postby sarawut_w » Wed Apr 25, 2018 10:11 pm

Dear David Williams,

To change fill color of the symbol, we need to create a new custom tool for you.
What is your MagicDraw version?

Best regards,
Sarawut W.
Support Engineer
sarawut_w
No Magic
No Magic
 
Posts: 283
Posts Rating:23
Joined: Thu Jun 23, 2011 12:47 am

Re: Fill Color Change in VTL

Postby david.williams@g2-ops.com » Thu Apr 26, 2018 12:19 pm

Sarawut,

Is this becuase VTL does not allow for inputs and only outputs from the models? Asking around it seems like individuals are able to do it running a ruby script but you're saying this custom tool will allow for this function using VTL?

We currently run MagicDraw 18.5 SP3 Architect edition in the office.

-David
david.williams@g2-ops.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Wed Apr 25, 2018 1:12 pm


Return to Report Engine

Who is online

Users browsing this forum: No registered users and 0 guests