Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » images in fragments
images in fragments [message #1721910] Mon, 01 February 2016 16:15 Go to next message
Axel Thor Asthorsson is currently offline Axel Thor AsthorssonFriend
Messages: 18
Registered: May 2015
Junior Member
Hi

When I let fragments generate images I end up with empty drawing canvas in my generated document. Is this not supported yet? Or do you recognize this issue?

best regards
Axel Thor


<fragment name='getImage' importedBundles='commons'importedFragments='getValue;getCleanFormattedStringValueNormal'><drop/>
<arg name='specObject' type='reqif10::SpecObject'/><drop/>
[if (specObject.type.longName = 'Figure')]<drop/>
[specObject.getValue('text')/]<drop/>
[gGet('figure_dir')/][gGet('returnValue')/]<drop/>
[gGet('returnValue')/]<drop/>
<image keepH='false' maxW='true' filePath='[gGet('figure_dir')/][gGet('returnValue')/]'><drop/>
 
</image><drop/>
[/if]<drop/>
</fragment>

Re: images in fragments [message #1721911 is a reply to message #1721910] Mon, 01 February 2016 16:17 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 425
Registered: July 2009
Senior Member
It should work did you display the result of [gGet('figure_dir')/][gGet('returnValue')/] ?
can you try [gGet('figure_dir') + gGet('returnValue')/] ?




Re: images in fragments [message #1722008 is a reply to message #1721911] Tue, 02 February 2016 08:52 Go to previous message
Axel Thor Asthorsson is currently offline Axel Thor AsthorssonFriend
Messages: 18
Registered: May 2015
Junior Member
Hmm.... ok I removed the drawing canvas and inserted it again in the fragment and this worked fine. I should have tried that earlier. I have no idea what was wrong. At least, this is working as it should Smile
Previous Topic:Using fragments in if statements
Next Topic:installation GenDoc failure
Goto Forum:
  


Current Time: Tue Sep 18 21:18:20 GMT 2018

Powered by FUDForum. Page generated in 0.01555 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top