vba - autocad 2008 - copy object between two open drawings -


I'm trying to copy a polyline from a drawing

  'context Save ADDocument Set Source DWG = ADDODOG Set Destination DWG = APDAG = Application to draw the source as adidrying. Documents 'Ad' users have selected Polyline, Dim Poli as the Double Digitization in the form of Object Dim Picture (0 to 2). GateNTty Polly, Pint, "Please, select Pollyline" Copy Object Source from DWG Destination DWG Deem Objects (0 to 0) Object Set Objects (0) = Poli Source DWG Copobjects Objects  

Here The problem indicates SourceDWG current with the last line Drawing - Destination drawing, not drawing source. This code is typed inside the stack overflow editor so that

Resolve: source document poli .document is the destination hydraounding. ModelSpace

  PolyDocument.Copyobjects object, this drawing. ModelSpace  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -