Search the Community
Showing results for tags 'forum'.
Found 3 results
Hi does anyone notice that the previous codes (with format) become messy in this new forum code tags. Im not sure the forum moderators able to overcome this issue otherwise (formatted) codes copied from forum get error! ATM i could only edit for single post using simple code merely remove contents within the brackets "[" "]". Hope this help? example: code copied from forum (setq [b] [color="blue"] pl [/color][/b]'((10. 50.)(20. 50.)(30. 50.)(40. 50.)(50. 50.))[color="green"]; point list[/color] ss ([color="blue"] ssget [/color] (append ([color="blue"] [b]vl-list*[/b] [/color] '(0 . [color="purple"] "CIRCLE,TEXT,INSERT" [/color] ) [color="green"]; filter [/color] '(-4 . "<OR")(apply 'append (mapcar ''((x) (list '(-4 . [color="purple"] "=,=,*" [/color] ) (cons 10 x))) [b] pl [/b])) ) '((-4 . "OR>")) ) ) ) ) After BB codes removed. (setq pl '((10. 50.)(20. 50.)(30. 50.)(40. 50.)(50. 50.)); point list ss ( ssget (append ( vl-list* '(0 . "CIRCLE,TEXT,INSERT" ) ; filter '(-4 . "<OR")(apply 'append (mapcar ''((x) (list '(-4 . "=,=,*" ) (cons 10 x))) pl )) ) '((-4 . "OR>")) ) ) ) ) here's is very basic idea with minimal error handling. you can put addition ideas in cond etc.. (defun c:forum (/ cbdata *error* $ fn fi fo l) ; unformat forum BBcode tags, example: [B] hanhphuc [/B] [Color=blue] defun [/color] ;;;http://www.theswamp.org/index.php?topic=21764.msg263322#msg263322 (defun cbdata (/ cb html) ;optimized hp (setq cb (vl-catch-all-apply 'vlax-invoke (list ((lambda (doc) (foreach x '(parentwindow clipboarddata) (setq doc (vlax-get doc x)) ) ) (setq html (vlax-create-object "htmlfile")) ) 'getdata "text" ) ) ) (vlax-release-object html) (if (not (vl-catch-all-error-p cb) ) cb ) ) (defun *error* (msg) (if fi (close fi))) (and (setq fn (strcat (getvar 'tempprefix) "tmp.txt") fi (open fn "w") ) (setq $ (cbdata)) (write-line $ fi) (progn (close fi) (setq fi (open fn "r"))) (while (setq $ (read-char fi)) (setq l (cons $ l))) (progn (if fi (close fi) ) (setq fn (strcat (getvar 'tempprefix) "cadtutor.lsp")) (setq fo (open fn "w")) ) (foreach x (vl-remove-if ''( ( x )(or (listp x) (> x 191 ))) (read (strcat "(" (apply 'strcat (mapcar ''((x) (strcat (if (numberp x) (cond ((= 91 x) "(") ((= 93 x) ")") (t (itoa x)) ) x ) " " ) ) (reverse l) ) ) ")" ) ) ) (write-char x fo) ) (progn (if fo (close fo) ) (findfile fn) ) (vl-cmdf "_.SHELL" (strcat "CLIP < " fn )) (alert "[BBCode Tags] removed! Try [Ctrl^C] in the forum!") ) (princ) ) Step 1.copy codes from forum, save in *.txt file, example "c:\\user\\CAD\\input.txt" 2.load this "forum.lsp" invoke --> command: forum 3. copy new contents from "cadtutor.lsp" (tags removed), simply paste it back to forum active editor Any ideas for multiple editing? RegEx ?
Hello, I've been searching the web for Fusion 360 support forums and I have only found the official one, there is no Stack Exchange either. I'm not getting good support at the official one, do you know of sites where I can get help? Thanks
I do remember that there is a subforum in CT where we can ask our questions on its structure. I forgot the place. My question) I have got a keen interest to read the similar threads which helps out with issue on question. It only lists 5 threads. Is it possible to change the settings to get more than 5?