Results 1 to 1 of 1

Thread: Same start code point to a shared subroutine... Newbie help please.

  1. #1
    I could stop if I wanted to scowsert's Avatar
    Join Date
    2006-08
    Location
    Olympia, WA
    Posts
    418
    Login to Give a bone
    0

    Default Same start code point to a shared subroutine... Newbie help please.

    So I've written code to bring in different family types. Up till now I'd copied the same 159 lines of code. Into different .cs files seen on the right of my screen shot (48 of those). The only difference between them are 3 lines. They are the red ones.

    Rather then having the same lines of code multiplied over and over (bad idea!) I'd love it if those three different lines could be pushed to a shared subroutine (the bottom circled part) I'm assuming it would be its own.cs file on the right?

    How do I made my three lines of code get pushed over, how do I get the shared code to accept those three text strings?

    Thanks I appreciate it. I'm learning C# by smashing my head into the wall over and over. I'll get through it!
    Attached Images Attached Images

Similar Threads

  1. Start point
    By kole_bg907874 in forum New Forum Users (Non technical)
    Replies: 2
    Last Post: 2011-09-28, 04:13 PM
  2. Replies: 3
    Last Post: 2009-08-14, 09:54 PM
  3. Replies: 5
    Last Post: 2008-09-30, 08:23 PM
  4. should i start with a shared parameter...?
    By Justin Marchiel in forum Revit Architecture - General
    Replies: 2
    Last Post: 2006-09-08, 05:50 PM
  5. Loading lisp code at start up
    By cadd4la in forum AutoLISP
    Replies: 4
    Last Post: 2006-01-31, 04:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •