I think I recall a discussion a while back about SVG_Add_object not working well when the object being added was another svg document. Two svg docs can be "combined" using SVG_ELEMENTS_TO_ARRAYS, and SVG_Add_object for each reference in the doc being added. This technique doesn't produce a complete merge if doc2 has structures, like patterns, that the elements of doc2 depend on.
Keith - CDI > On Oct 21, 2017, at 1:48 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I must be confused about how this works. I have some SVG files I want to > use to create button icons. These are nice, simple, native SVG. I want to > manipulate them using SVG. I can open a file and export it to a pic > variable just fine. But I'm not able to put that object into a new svg. > > For example: > > $svgImg:=SVG_Open_file ($path+$aDocs{$n}) > > $svg:=SVG_Copy ($svgImg) > $pic1:=SVG_Export_to_picture ($svg;0) > SVG_CLEAR ($svg) > > This works as expected. > > $svg:=SVG_New > $newObj:=SVG_Add_object ($svg;$svgImg) > $pic2:=SVG_Export_to_picture ($svg;0) > > > This doesn't work. $pic2 is blank even though $svg has received the new > object. I can see that by looking at $svg in the viewer. > > What am I missing here? > > -- > Kirk Brooks > San Francisco, CA > ======================= > > *The only thing necessary for the triumph of evil is for good men to do > nothing.* > > *- Edmund Burke* > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************