Hi,
Here is a small code showing how to create a simple Xml file using .Net Framework :
-- Do not forget to load the assembly
dotnet.LoadAssembly "System.Xml.dll"
-- Create the XmlWriter class
XmlWriter = dotNetClass "System.Xml.XmlWriter"
-- Because Create() method is static
Writer = XmlWriter.Create "Test.xml"
-- Write the name of each geometry in the current scene
Writer.WriteStartElement "geometries"
for object in geometry do
(
Writer.WriteElementString "geometry" object.name
)
Writer.WriteEndElement()
-- Release Xml resources
Writer.Flush()
Writer.Close()
Bobo without you I don’t think many of us would make it. You always give the most concise answers to every question and then some.
Thanks a million for your help and support for the community.
Moreover, I appreciate the professionals sharing their experience and their knowledge!
Hey guys,
i’ve been trying to send an email with .net, but i’m stuck because the smtp client class needs some sort of credentials object to connect to a a server, but i’ve been unable to construct one.
can someone eleborate on how to connect to a password protected smtp server?
Hi, ypuech,
I see what you did with the System.Xml.dll, its all making sense now… Thanks a lot.
Cheers
Dave
Bobo without you I don’t think many of us would make it. You always give the most concise answers to every question and then some.
Thanks a million for your help and support for the community.
Hear hear! Without your help I would not have what scripting knowledge I have, nor would I have ever branched into python or 3d math.
You guys all suck!!! I still can’t download the Max 9 Demo!! :banghead:
And I REALLY want to test this stuff…
I don’t know, I’ve made about 20 requests since I found out about Max9 and I still haven’t received an email with the link. It’s frustrating! I don’t know if it’s because of where I live or if my details are ‘incorrect’…
Never thought of that, I used different addies but all on the same server… I’ll give it a try with my webmail.
Sorry for jacking your thread guys.
Update: FINALLY!!! I got the link through my webmail! Thanks for the help guys.
I finally got it! Wooohooo!
DotNet access is cool, but it is alot more cumbersome than the rollout system, but I’m sure someone can write wrappers to make the code smaller.
Can someone tell me though how one blocks keyboard access from max so I can actually use the richtext box?