• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

Applying GraphicAttributes on inline anchored item does not work

Explorer ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

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);

 

TOPICS
SDK

Views

91

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jul 12, 2022 Jul 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.

Votes

Translate

Translate
Guide ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines