Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is the signature of my method.
public static void Redefine(this BlockReference blkRef, Transaction trans, string path, Blocks.RedefineAction flag, string blockname = "")
{
string text = "";
if (blockname == "")
{
text = blkRef.Name;
}
If I call it without specifying the last optional argument, I get an invalid input error. If I call it with a string, it works, but if I call it with and empty string "" to get around the first error condition, I still get an invalid argument error. What am I missing? Thanks in advance.
Ed
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.
Solved! Go to Solution.