Skip to main content
Inspiring
July 11, 2022
Answered

Applying GraphicAttributes on inline anchored item does not work

  • July 11, 2022
  • 1 reply
  • 204 views

Hello,

Applying the following code on a normal graphic box works fine. However it does not work on an anchored box. Appreciate your help and suggestions:

 

UIDList newSplineItemList(BoxIDRef); //BoxIDRef is the UIDRef of the anchored box

InterfacePtr<ICommand> FillTintSplineCmd(Utils<IGraphicAttributeUtils>()->CreateFillTintCommand(pcr->backShade, &newSplineItemList, kTrue, kTrue));
if (FillTintSplineCmd == nil)
{
status = kFailure;
QError(QERROR, "185620-cannot create the command to apply FillTint");
return status;
}
status = CmdUtils::ProcessCommand(FillTintSplineCmd);

 

This topic has been closed for replies.
Correct answer Dirk Becker

Use ::GetClass() to determine the class of your "anchored box".

That's probably something related to the anchoring.

Then look around for nested objects using IHierarchy.

1 reply

Dirk BeckerCorrect answer
Legend
July 12, 2022

Use ::GetClass() to determine the class of your "anchored box".

That's probably something related to the anchoring.

Then look around for nested objects using IHierarchy.