Jump to content
Developer Wiki and Function Reference Links ×

How to set Hatch Pattern by sdk?


Nebeor

Recommended Posts

VWObject errorBox(gSDK->CreateRectangle(WorldRect(WorldPt(0,0),WorldPt(1000,1000))));
InternalIndex hatchIndex;
gSDK->NameToInternalIndexN("ErrorHatch",  hatchIndex);
//VWPattern hatchPat(hatchIndex);
//errorBox.GetObjectAttribs().SetFillPattern(hatchPat);
gSDK->SetFillPat(errorBox,hatchIndex);

Hello there,

I would like to add a hatch pattern that exists in my resource browser to my 2D rectangle (as if I would just drag and drop), but this does not work, what am I doing wrong?  

Edited by Nebeor
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...