<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-10425945.post8933771476885184275..comments</id><updated>2009-03-24T22:21:11.745-03:00</updated><title type='text'>Comments on ObjectARX &amp; Dummies: Version Control</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arxdummies.blogspot.com/feeds/8933771476885184275/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html'/><author><name>Fernando Malard</name><uri>http://www.blogger.com/profile/09852061806995998594</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10425945.post-7819124687359794051</id><published>2008-04-23T16:21:00.000-03:00</published><updated>2008-04-23T16:21:00.000-03:00</updated><title type='text'>Hi Spencer,There is no native way to reproduce PED...</title><content type='html'>Hi Spencer,&lt;BR/&gt;&lt;BR/&gt;There is no native way to reproduce PEDIT command.&lt;BR/&gt;&lt;BR/&gt;I would recommend you to test your command into a simple command which only ask the user to select the entities and then apply the command. &lt;BR/&gt;&lt;BR/&gt;If the command is failing there must be something wrong with entities states (as you said) or maybe they are not connected curves.&lt;BR/&gt;&lt;BR/&gt;Sorry about that.&lt;BR/&gt;Regards,</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/7819124687359794051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/7819124687359794051'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208978460000#c7819124687359794051' title=''/><author><name>Fernando Malard</name><uri>http://www.blogger.com/profile/09852061806995998594</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13063988425355787128'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-8887866241152774801</id><published>2008-04-23T15:33:00.000-03:00</published><updated>2008-04-23T15:33:00.000-03:00</updated><title type='text'>Hi, Fernando,sorry to bother you again!I have a pi...</title><content type='html'>Hi, Fernando,sorry to bother you again!&lt;BR/&gt;&lt;BR/&gt;I have a pile of lines and arcs(I don't know the sequence), which can be joined into a valid lwpolyline, I use code as this:&lt;BR/&gt;&lt;BR/&gt;rc=ads_command(RTSTR,_T(".pedit"),RTSTR, _T("M"),RTPICKS,ssname,RTSTR,_T(""),&lt;BR/&gt;  RTSTR,_T("y"),RTSTR,_T("j"),RTSTR,_T(""),&lt;BR/&gt;  //RTSTR,_T("w"),RTREAL,thickwid,&lt;BR/&gt;  RTSTR,"",RTNONE);&lt;BR/&gt;&lt;BR/&gt;   but it doesn't work sometimes,(maybe when there's some entity opened for write already)&lt;BR/&gt;&lt;BR/&gt;so, my question is: Do you know why the "pedit"command failed? Can I use arx code to join these lines and arcs into a whole polyline( I don't know their sequence)?How?Any example?&lt;BR/&gt;Thank you in advance!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/8887866241152774801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/8887866241152774801'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208975580000#c8887866241152774801' title=''/><author><name>Spencer</name><uri>http://www.blogger.com/profile/16075197057361984192</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-8391120772362400550</id><published>2008-04-20T11:47:00.000-03:00</published><updated>2008-04-20T11:47:00.000-03:00</updated><title type='text'>I'll try, hope it'll work. Thank you for your kind...</title><content type='html'>I'll try, hope it'll work. Thank you for your kind help!!! Thank you very much!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/8391120772362400550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/8391120772362400550'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208702820000#c8391120772362400550' title=''/><author><name>Spencer</name><uri>http://www.blogger.com/profile/16075197057361984192</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-2793303071269697249</id><published>2008-04-20T10:27:00.000-03:00</published><updated>2008-04-20T10:27:00.000-03:00</updated><title type='text'>BTW, don`t forget the _T() macro:ads_queueexpr(_T(...</title><content type='html'>BTW, don`t forget the _T() macro:&lt;BR/&gt;&lt;BR/&gt;ads_queueexpr(_T("(command \"_.undefine\" \"offset\")"));</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/2793303071269697249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/2793303071269697249'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208698020000#c2793303071269697249' title=''/><author><name>Fernando Malard</name><uri>http://www.blogger.com/profile/09852061806995998594</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13063988425355787128'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-3862516279010446151</id><published>2008-04-20T10:25:00.000-03:00</published><updated>2008-04-20T10:25:00.000-03:00</updated><title type='text'>Hi Spencer,You can do that using UNDEFINE command....</title><content type='html'>Hi Spencer,&lt;BR/&gt;&lt;BR/&gt;You can do that using UNDEFINE command. Inside your acrxEntryPoint() callback for kLoadDwgMsg message, add this:&lt;BR/&gt;&lt;BR/&gt;ads_queueexpr( "(command \"_.undefine\" \"offset\")");&lt;BR/&gt;&lt;BR/&gt;The ads_queueexpr() is an undocumented function which sends a command but through a queue avoiding document state problems.&lt;BR/&gt;&lt;BR/&gt;Remember that even undefining a native command it will be still available from its DOT version ".offset".&lt;BR/&gt;&lt;BR/&gt;Have you reconsidered deriving from AcDbCurve? I think this would be the most secure way to go and you will not need to handle each way the user can interact with OFFSET command.&lt;BR/&gt;&lt;BR/&gt;Regards,</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/3862516279010446151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/3862516279010446151'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208697900000#c3862516279010446151' title=''/><author><name>Fernando Malard</name><uri>http://www.blogger.com/profile/09852061806995998594</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13063988425355787128'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-1926529332010445336</id><published>2008-04-20T01:12:00.000-03:00</published><updated>2008-04-20T01:12:00.000-03:00</updated><title type='text'>Thanks for your reply! But can you give me more in...</title><content type='html'>Thanks for your reply! But can you give me more information about how to "redefine the native OFFSET command "? I searched your articles and failed to find any stuff. And any sample? Thank you very much again!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/1926529332010445336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/1926529332010445336'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208664720000#c1926529332010445336' title=''/><author><name>Spencer</name><uri>http://www.blogger.com/profile/16075197057361984192</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-2589586949122853121</id><published>2008-04-19T15:37:00.000-03:00</published><updated>2008-04-19T15:37:00.000-03:00</updated><title type='text'>Hi Spencer,Maybe the most straight forward method ...</title><content type='html'>Hi Spencer,&lt;BR/&gt;&lt;BR/&gt;Maybe the most straight forward method would be redefine the native OFFSET command and implement yours.&lt;BR/&gt;&lt;BR/&gt;The idea is to reproduce the OFFSET command flow and before apply the modification you can test if the entity is one of those you are interested or not.&lt;BR/&gt;&lt;BR/&gt;If it is, use your own function if not, check if it is derived from AcDbCurve and call getOffsetCurves() by yourself.&lt;BR/&gt;&lt;BR/&gt;I think this is simple and it will work. Of course this requires that your ARX is up and running inside the target computer.&lt;BR/&gt;&lt;BR/&gt;Best regards,</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/2589586949122853121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/2589586949122853121'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208630220000#c2589586949122853121' title=''/><author><name>Fernando Malard</name><uri>http://www.blogger.com/profile/09852061806995998594</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13063988425355787128'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-10425945.post-9010932313182486818</id><published>2008-04-19T11:44:00.000-03:00</published><updated>2008-04-19T11:44:00.000-03:00</updated><title type='text'>Hi,Fernando,Thank you very much! Your articles tea...</title><content type='html'>Hi,Fernando,Thank you very much! Your articles teached me a lot. Can you just help me one question whitch torchured me very much: I have a customed entity, if the user input the "OFFSET" command, I'd like to use my own offset instead of the native one, using "commandWillStart" of AcEditorReactor, I can know wheather he input "OFFSET" or not , but how can I prevent it, or block it when the user use offset command on my entity, and leave it alone while other entities? And how can I apply my own offset function? The customed entity is not derived from AcDbCurve, so overriding getOffsetCurves().... will not work, I tried it many times. Can you give me some advise, or just a simple sample? Thank you very very much!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/9010932313182486818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10425945/8933771476885184275/comments/default/9010932313182486818'/><link rel='alternate' type='text/html' href='http://arxdummies.blogspot.com/2008/03/version-control.html?showComment=1208616240000#c9010932313182486818' title=''/><author><name>Spencer</name><uri>http://www.blogger.com/profile/16075197057361984192</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://arxdummies.blogspot.com/2008/03/version-control.html' ref='tag:blogger.com,1999:blog-10425945.post-8933771476885184275' source='http://www.blogger.com/feeds/10425945/posts/default/8933771476885184275' type='text/html'/></entry></feed>