Skip to main content
8-Gravel
March 17, 2017
Question

JLink don't create an entity with a standard color

  • March 17, 2017
  • 0 replies
  • 627 views

In JLink is possible create an entity in a DRW with an assigned color, es:

 

colorY = StdColor.COLOR_LETTER;

yellow = session.GetRGBFromStdColor(colorY);

instrs = pfcDetail.DetailEntityInstructions_Create(ln, view);

instrs.SetColor(yellow);

 

but the entity created has not the "COLOR_LETTER" color but a color with the same RGB of "COLOR_LETTER".

When I print this DRW file the entity created has not the right pen thickness because it is not recognized from the "pentable".

 

I ask if it was possible to place in JLink the same function for create a standard color as in the Toolkit.