MarkCalvert Posted May 21, 2013 Posted May 21, 2013 Hello, Now I know this can be done, as I've done it before! But for the life of me I cannot find the solution. I am wanting to insert a block at a point, with eastings and nothings and an individual number. For example. Point 1 -459655,451702 Point 2 -459655,451702 Can I use a script for this, or something else using a .scr or .csv file? Many thanks, Mark Quote
MarkCalvert Posted May 21, 2013 Author Posted May 21, 2013 In my previous attempt, it was an attribute and a block? Quote
dbroada Posted May 21, 2013 Posted May 21, 2013 possibly a block with attributes with fields in that reference the X & Y positions. (Actually, MTEXT can also be used for a field.) I am on half day holiday here so won't have time to look but hopefully that will remind you of where to go. Quote
dbroada Posted May 21, 2013 Posted May 21, 2013 a few minutes to spare, does this help along the way? Position Test.dwg Quote
MarkCalvert Posted May 21, 2013 Author Posted May 21, 2013 Thank you, that's what I'm looking for! But to atomically insert it at the correct x,y coordinates with a specific text, ideally from excel or a wordpad (.scr or .csv) file. Mark Quote
Murph_map Posted May 21, 2013 Posted May 21, 2013 Thank you, that's what I'm looking for! But to atomically insert it at the correct x,y coordinates with a specific text, ideally from excel or a wordpad (.scr or .csv) file. Mark There is a lsp flie out there called Asciin.lsp or something like that. it reads a txt file and inserts a block/point. I use Map3d or Civil3d to do it. Quote
Guest AARi Posted May 21, 2013 Posted May 21, 2013 (edited) check this .scr use Excel to compile the full script [CONCATENATE function] then you can change atribbutes for the blocks ; AARi ?0/3 ; MULTYINSERT BLOCKS INTO POINTS ; USAGE > RETURNS.... ; ; Comando: SCRIPT ; Comando: -insert Indique nombre de bloque o [?] <PT_TOPO>: PT_TOPO ; Unidades: Milímetros Conversión: 0.0010 ; Precise punto de inserción o [Puntobase/Escala/X/Y/Z/Girar]: 1.2379,3.6043,-10.0000 ; Indique factor de escala X, precise esquina opuesta, o [Esquina/XYZ] <1>: 1000 Indique factor de escala Y <usar factor de escala X>: 1000 ; Precise ángulo de rotación <0>: 0 ; : (-insert PT_TOPO 1.2379,3.6043,-10.0000 1000 1000 0 ) ; ; =CONCATENAR("(-insert PT_TOPO";" ";W2;",";X2;",";Y2;" ";"1000";" ";"1000";" ";"0 )") ;(-insert PT_TOPO 1.2379,3.6043,-10.0000 1000 1000 0 ) ;(-insert PT_TOPO 0.7691,2.2936,5.0000 1000 1000 0 ) ;(-insert PT_TOPO 1.6727,2.4498,-20.0000 1000 1000 0 ) ;(-insert PT_TOPO 1.7406,0.4328,10.0000 1000 1000 0 ) ;(-insert PT_TOPO 2.7666,0.6297,10.0000 1000 1000 0 ) Make a new script with this command to change atributes for block`s name [from excel] or any attribute. Sintax: (command "-attedit" "N" "N" "MyBlock" "MyField" "*" "Oldtext" "NewText") Command: -attedit Edit attributes one at a time? [Yes/No] : n Performing global editing of attribute values. Edit only attributes visible on screen? [Yes/No] : n Drawing must be regenerated afterwards. Enter block name specification : EPLFRAME Enter attribute tag specification : TITLE Enter attribute value specification : 1 attributes selected. Enter string to change: KITTING WORK STATION Enter new string: GenV KWS Edited May 21, 2013 by AARi Quote
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.