Bill Tillman Posted December 3, 2013 Share Posted December 3, 2013 I found some nice code to add text to the drawing properties. The code works fine but I need a way to enter the text for the Comments field to be a list with each new item on it's own line: Feature #1 Feature #2 . . . Feature #19 When I enter the text now it all appears on the same line. How could I build a string which would contain properly formatted line returns for this field. (vl-load-com) (setq acadObject (vlax-get-acad-object)) (setq acadDocument (vla-get-ActiveDocument acadObject)) ;;Get the SummaryInfo (setq dProps (vlax-get-Property acadDocument 'SummaryInfo)) ;;Edit the SummaryInfo properties (vlax-put-Property dProps 'Title "Test Title") (vlax-put-Property dProps 'Subject "Test Subject") (vlax-put-Property dProps 'Author "Test Author") (vlax-put-Property dProps 'Keywords "One Two Three") (vlax-put-Property dProps 'Comments "This is a comment") Quote Link to comment Share on other sites More sharing options...
BlackBox Posted December 3, 2013 Share Posted December 3, 2013 Try this, Bill: "Line 1.\r\nLine 2.\r\nLine 3." Quote Link to comment Share on other sites More sharing options...
Bill Tillman Posted December 3, 2013 Author Share Posted December 3, 2013 Thanks...that did the magic thing and now we have yet another way to search drawings for content. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted December 3, 2013 Share Posted December 3, 2013 Thanks...that did the magic thing and now we have yet another way to search drawings for content. Anytime, my friend; Happy to help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.