![]() |
【转帖】oddbentitysetlayer with undefined layers
oddbentity::setlayer with undefined layers
oddbentity::setlayer with undefined layers how is oddbentity::setlayer(const odstring& newval, bool dosubents = true) and similar entity functions defined to behave when "newval" has the name of an undefined layer: a) establish a layer with default values of that name and set entity layer to the new layer entry. b) treat it as an error and leave entitity layer unchanged. either way will do, but the choise has consquences for implementation. -rune jorgensen www.dds.no i think dwgdirect is designed to throw oderror() exceptions when there are invalid data and is supposed to leave the state of the objects (in this case both entities and layers) unchanged. i don't know whether it is the same with this very function, you should try it yourself? best regards chudomir |
| 所有的时间均为北京时间。 现在的时间是 03:11 AM. |