Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. How to Write a Program to Import IGES / Para-solid File Format

How to Write a Program to Import IGES / Para-solid File Format

Scheduled Pinned Locked Moved Visual Studio
databasedata-structuresarchitectureperformancehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vinod Kumar
    wrote on last edited by
    #1

    I have Given the Program what i have written to import an File Format, But it shows me an error (OpenDialodFile and FCAD Image) are not found.... I have pasted my program below and i have bolded................. #region Open private void openToolStripMenuItem_Click(object sender, EventArgs e) { string filename; try { filename = getOpenFilename(Program.settings.workingDirectory); } catch { filename = ""; } if (filename != "" && filename != null) { /* Load the file. */ XmlDocument doc = new XmlDocument(); doc.Load(filename); /* create prefix<->namespace mappings (if any) */ XmlNamespaceManager nsMgr = new XmlNamespaceManager(doc.NameTable); /* Query the document */ if (doc.SelectNodes("/grammarRule", nsMgr).Count > 0) { grammarRule rule = grammarRule.openRuleFromXml(filename); grammarDisplays.Add(new grammarRuleDisplay(rule, Path.GetFileName(filename))); grammarDisplays[grammarChildCount].Show(); } else if (doc.SelectNodes("/ruleSet", nsMgr).Count > 0) { ruleSet rs = ruleSet.openRuleSetFromXml(filename, Program.settings.defaultGenSteps); ruleSetDisplays.Add(new ruleSetDisplay(rs, Path.GetFileName(filename))); ruleSetDisplays[ruleSetChildCount].Show(); } else if (doc.SelectNodes("/designGraph", nsMgr).Count > 0) { designGraph graph = designGraph.openGraphFromXml(filename); addAndShowGraphDisplay(graph, Path.GetFileName(filename)); } else if (doc.SelectNodes("/candidate", nsMgr).Count > 0) { string tempString = ""; candidate c = candidate.openCandidateFromXml(filename); SearchIO.output("The candidate found in " + filename, 0); if (c.performanceParams.Count > 0) { tempString = "has the following performance parameters"; foreach (double a in c.performanceParams) tempString += ": " + a.ToString(); SearchIO.output(tempString, 0);

    L D 2 Replies Last reply
    0
    • V Vinod Kumar

      I have Given the Program what i have written to import an File Format, But it shows me an error (OpenDialodFile and FCAD Image) are not found.... I have pasted my program below and i have bolded................. #region Open private void openToolStripMenuItem_Click(object sender, EventArgs e) { string filename; try { filename = getOpenFilename(Program.settings.workingDirectory); } catch { filename = ""; } if (filename != "" && filename != null) { /* Load the file. */ XmlDocument doc = new XmlDocument(); doc.Load(filename); /* create prefix<->namespace mappings (if any) */ XmlNamespaceManager nsMgr = new XmlNamespaceManager(doc.NameTable); /* Query the document */ if (doc.SelectNodes("/grammarRule", nsMgr).Count > 0) { grammarRule rule = grammarRule.openRuleFromXml(filename); grammarDisplays.Add(new grammarRuleDisplay(rule, Path.GetFileName(filename))); grammarDisplays[grammarChildCount].Show(); } else if (doc.SelectNodes("/ruleSet", nsMgr).Count > 0) { ruleSet rs = ruleSet.openRuleSetFromXml(filename, Program.settings.defaultGenSteps); ruleSetDisplays.Add(new ruleSetDisplay(rs, Path.GetFileName(filename))); ruleSetDisplays[ruleSetChildCount].Show(); } else if (doc.SelectNodes("/designGraph", nsMgr).Count > 0) { designGraph graph = designGraph.openGraphFromXml(filename); addAndShowGraphDisplay(graph, Path.GetFileName(filename)); } else if (doc.SelectNodes("/candidate", nsMgr).Count > 0) { string tempString = ""; candidate c = candidate.openCandidateFromXml(filename); SearchIO.output("The candidate found in " + filename, 0); if (c.performanceParams.Count > 0) { tempString = "has the following performance parameters"; foreach (double a in c.performanceParams) tempString += ": " + a.ToString(); SearchIO.output(tempString, 0);

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      And what exactly is the problem?

      1 Reply Last reply
      0
      • V Vinod Kumar

        I have Given the Program what i have written to import an File Format, But it shows me an error (OpenDialodFile and FCAD Image) are not found.... I have pasted my program below and i have bolded................. #region Open private void openToolStripMenuItem_Click(object sender, EventArgs e) { string filename; try { filename = getOpenFilename(Program.settings.workingDirectory); } catch { filename = ""; } if (filename != "" && filename != null) { /* Load the file. */ XmlDocument doc = new XmlDocument(); doc.Load(filename); /* create prefix<->namespace mappings (if any) */ XmlNamespaceManager nsMgr = new XmlNamespaceManager(doc.NameTable); /* Query the document */ if (doc.SelectNodes("/grammarRule", nsMgr).Count > 0) { grammarRule rule = grammarRule.openRuleFromXml(filename); grammarDisplays.Add(new grammarRuleDisplay(rule, Path.GetFileName(filename))); grammarDisplays[grammarChildCount].Show(); } else if (doc.SelectNodes("/ruleSet", nsMgr).Count > 0) { ruleSet rs = ruleSet.openRuleSetFromXml(filename, Program.settings.defaultGenSteps); ruleSetDisplays.Add(new ruleSetDisplay(rs, Path.GetFileName(filename))); ruleSetDisplays[ruleSetChildCount].Show(); } else if (doc.SelectNodes("/designGraph", nsMgr).Count > 0) { designGraph graph = designGraph.openGraphFromXml(filename); addAndShowGraphDisplay(graph, Path.GetFileName(filename)); } else if (doc.SelectNodes("/candidate", nsMgr).Count > 0) { string tempString = ""; candidate c = candidate.openCandidateFromXml(filename); SearchIO.output("The candidate found in " + filename, 0); if (c.performanceParams.Count > 0) { tempString = "has the following performance parameters"; foreach (double a in c.performanceParams) tempString += ": " + a.ToString(); SearchIO.output(tempString, 0);

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        How many times are you going to ask this question and then ignore the questions you get back? Do NOT repost this question again.

        A guide to posting questions on CodeProject

        How to debug small programs
        Dave Kreskowiak

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups