AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change polygon pattern style by code

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
188 Views, 0 Replies

change polygon pattern style by code

Hi, I have a problem to change the pattern style of a polygon with Autocad 2007 using Object ARX.
I use this code (that worked in Autocad 2006):

AcDbMPolygon *pPol= NULL;
(... I put in pPol my entity polygon)
pPol->setPattern(AcDbHatch::kPreDefined,"SOLID");
pPol->ev aluateHatch(false);

When I use setPattern it give me the error Acad::eInvalidInput. What is wrong?
thanks, Micaela
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost