Quantcast
Channel: Adobe Community : Popular Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 23442

Setting AFrame height to the height of a graphic inside aframe plus padding

$
0
0

Hello fellows,

I am trying to set a permanent bottom padding between an anchored frame and a graphic object (embedded Visio) that is inside the anchored frame.

However, instead of getting that padding below the graphic, the aframe becomes really small, and only 20% of the graphic is exposed.

 

The code goes like this:

...

SET vFrame = vCurrentDoc.FirstGraphicInDoc;

Loop While(vFrame)

 

IF vFrame.ObjectName = 'AFrame'

SET vFrame.AnchorType = AnchorBelow;

SET vFrame.GraphicIsSelected = 1;

 

SET vGraphic = vFrame.FirstGraphicInFrame // Select the 1st graphic in the frame

 

SET vFrame.Width = vFrame.TextLoc.InTextObj.Width;

SET vFrame.Height= vGraphic.Height + 5mm; //Here is the padding of 5mm

Set vGraphic.LocY = 0mm;

Set vGraphic.LocX = (vFrame.Width - vGraphic.Width) / 2;

ENDIF

...

 

Please, advise!

Thank you!


Viewing all articles
Browse latest Browse all 23442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>