User Profile

Collapse

Profile Sidebar

Collapse
hollertrek
hollertrek
Last Activity: Nov 14 '08, 05:54 PM
Joined: Nov 6 '08
Location: Minnesota
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ok, let me simplify my explanation of what's going on. I get "Object variable or With block variable not set" when trying to execute the following that refers to the active document. I’ve also gotten the error, which is related, “object reference not set to an instance of an object.”

    Dim oAsmCompDef As Inventor.Assemb lyComponentDefi nition
    oAsmCompDef = ThisApplication .ActiveDocument .ComponentDefin ition
    ...
    See more | Go to post

    Leave a comment:


  • Insert 1 Document Into Another Document - A part into an assembly drawing

    I know this code references Autodesk Inventor (CAD) API, but I'm hoping for a generic solution to my problem with the following error. The error is "object reference not set to an instance of an object" and the macro takes an open document (part file drawing) and inserts it into another open document (assembly file).

    Code:
    Code:
            ' Set a reference to the assembly component definintion.
            ' This assumes
    ...
    See more | Go to post

  • This is what I need. :) Very nice....
    See more | Go to post

    Leave a comment:


  • hollertrek
    replied to Wildcard in a String Concatenating
    in .NET
    Now it's starting to make some sense. You guys are good. :-) Thanks!
    See more | Go to post

    Leave a comment:


  • hollertrek
    replied to Wildcard in a String Concatenating
    in .NET
    Would you elaborate? I know the .net framework allows the use of other languages in vb.net, but I'm clueless where to start. Unless that's not where you're going with this. And that still doesn't answer if I would use it in a function, etc. I'll read up on it....
    See more | Go to post

    Leave a comment:


  • hollertrek
    replied to Wildcard in a String Concatenating
    in .NET
    I don't mean to be a twit here, but could you explain the syntax? I'm not familiar with the string[] filenames portion. Is this symbolic or actual code? In what context would I use it, in a function?
    See more | Go to post

    Leave a comment:


  • hollertrek
    replied to Wildcard in a String Concatenating
    in .NET
    I have a file naming convention that looks like this:

    jholler_001.ipt

    I'm trying to create a collection from a directory of all files with the form that will have different _000s. For example, jholler_012, jholler_022, jholler_102.

    How would I use Regex, create a statement that does this?...
    See more | Go to post

    Leave a comment:


  • hollertrek
    replied to Wildcard in a String Concatenating
    in .NET
    Ok, so this looks more like a different class (sql statements rather than simple strings) that's used in asp.net more so, rather than straight vb.net? I'll have to digest this because I'm unfamiliar. But you're saying string manipulation doesn't allow what I'm asking? Thanks.
    See more | Go to post

    Leave a comment:


  • hollertrek
    started a topic Wildcard in a String Concatenating
    in .NET

    Wildcard in a String Concatenating

    I'm evaluating a string (below) in a function.
    Code:
    Return CBool(filename.StartsWith(ValueJon & "_"))
    Is there a way to add 3 characters to this string that are unknown type, a wildcard in a sense?
    Code:
    Return CBool(filename.StartsWith(ValueJon & "_" & "XXX"))
    Thanks,

    J
    See more | Go to post

  • I'll try these tomorrow. This is a very efficient user group. Thanks for the good answers.

    Jon
    See more | Go to post

    Leave a comment:


  • hollertrek
    started a topic Does Any File Exist in a Directory - Boolean
    in .NET

    Does Any File Exist in a Directory - Boolean

    Code:
    If System.IO.File.Exists("C:\\test.txt") = True Then
    This was recently posted as a way of finding a file. If I wanted to know if any files existed in a directory, would I do the following?

    Code:
    If System.IO.File.Exists("C:\\*.txt") = True Then
    or

    Code:
    If System.IO.File.Exists("C:\\*.*") = True Then
    Thanks,

    Jon
    See more | Go to post
No activity results to display
Show More
Working...